def wait_for_keypress(self, key, modifiers: list=None, timeOut=<NUM_LIT>):
if modifiers is None:<EOL><INDENT>modifiers = []<EOL><DEDENT>w = iomediator.Waiter(key, modifiers, None, timeOut)<EOL>return w.wait()<EOL>
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