code: def console_wait_for_keypress(flush: bool) -> Key:
      
      key = Key()
      lib.TCOD_console_wait_for_keypress_wrapper(key.key_p, flush)
      return key
docs: Block until the user presses a key, then returns a new Key.
  
      Args:
          flush bool: If True then the event queue is cleared before waiting
                      for the next event.
  
      Returns:
          Key: A new Key instance.
  
      .. deprecated:: 9.3
          Use the :any:`tcod.event.wait` function to wait for events.