@classmethod
def from_char(cls, char, **kwargs):
    """Creates a key from a character.

        :param str char: The character.

        :return: a key code
        """
    return cls(char=char, **kwargs)
