code: def console_check_for_keypress(flags: int = KEY_RELEASED) -> Key:
      
      key = Key()
      lib.TCOD_console_check_for_keypress_wrapper(key.key_p, flags)
      return key
docs: .. deprecated:: 9.3
          Use the :any:`tcod.event.get` function to check for events.