class_docstr: :param key: A `Keys` instance or text (one character).
  :param data: The received string on stdin. (Often vt100 escape codes.)
class_docstr_tok: [":","param","key",":","A","`","Keys","`","instance","or","text","(","one","character",")",".",":","param","data",":","The","received","string","on","stdin",".","(","Often","vt100","escape","codes",".",")"]
code: def __repr__(self):
      return "%s(key=%r, data=%r)" % (
          self.__class__.__name__,
          self.key,
          self.data,
      )
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.buffer import EditReadOnlyBuffer
  from prompt_toolkit.filters.cli import ViNavigationMode
  from prompt_toolkit.keys import Keys, Key
  from prompt_toolkit.utils import Event
  from .registry import BaseRegistry
  from collections import deque
  from six.moves import range
  import weakref
  import six
label_desc: Use image node_id 2 for calling the KeyPress obj's underlying member method code with example usage: obj.__repr__() and returns: unknown