docs: def key_wait():
      """Waits until the user presses a key.
      Then returns a :any:`KeyDown` event.
  
      Key events will repeat if held down.
  
      A click to close the window will be converted into an Alt+F4 KeyDown event.
  
      Returns:
          tdl.event.KeyDown: The pressed key.
      """
      while 1:
          for event in get():
              if event.type == 'KEYDOWN':
                  return event
              if event.type == 'QUIT':
                  # convert QUIT into alt+F4
                  return KeyDown('F4', '', True, False, True, False, False)
          _time.sleep(.001)