class_docstr: :param key: A `Keys` instance or text (one character).
  :param data: The received string on stdin. (Often vt100 escape codes.)
code: def __eq__(self, other: object) -> bool:
      if not isinstance(other, KeyPress):
          return False
      return self.key == other.key and self.data == other.data
  
imports: from __future__ import annotations
  import weakref
  from asyncio import Task, sleep
  from collections import deque
  from typing import TYPE_CHECKING, Any, Generator
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.enums import EditingMode
  from prompt_toolkit.filters.app import vi_navigation_mode
  from prompt_toolkit.keys import Keys
  from prompt_toolkit.utils import Event
  from .key_bindings import Binding, KeyBindingsBase
label_desc: Use image node_id 3 for calling the KeyPress obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, False