    def __repr__(self):
        """
        :returns: a string representation of the keyboard event.
        """
        return f"KeyboardEvent: {self.key_code}"
:returns: a string representation of the keyboard event.
asciimatics/event.py