code: def wait_for_keypress(self, key, modifiers: list=None, timeOut=10.0):
          
          if modifiers is None:
              modifiers = []
          w = iomediator.Waiter(key, modifiers, None, timeOut)
          return w.wait()
docs: Wait for a keypress or key combination
          
          Usage: C{keyboard.wait_for_keypress(self, key, modifiers=[], timeOut=10.0)}
          
          Note: this function cannot be used to wait for modifier keys on their own
  
          @param key: they key to wait for
          @param modifiers: list of modifiers that should be pressed with the key
          @param timeOut: maximum time, in seconds, to wait for the keypress to occur