@staticmethod
def _to_gtk_modifier(key):
    """
        Translates the modifies to the way that GTK likes them.
        """
    key = key.strip()
    if key == 'meta':
        key = '<alt>'
    elif key in ('ctrl', 'alt', 'shift'):
        key = '<' + key + '>'
    else:
        key = key
    return key
