def format_keys(keys):
    """
        Converts keys like findHighlightForeground to find_highlight_foreground.
    """
    for key in keys:
        formatted_key = ''.join([f"_{c.lower()}" if c.isupper() else c for c in key.text])
        key.text      = formatted_key

    return keys