code: def on_press_key(key, callback, suppress=False):
      
      return hook_key(key, lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
docs: Invokes `callback` for KEY_DOWN event related to the given key. For details see `hook`.