def wait(hotkey=None, suppress=False, trigger_on_release=False):
if hotkey:<EOL><INDENT>lock = _Event()<EOL>remove = add_hotkey(hotkey, lambda: lock.set(), suppress=suppress, trigger_on_release=trigger_on_release)<EOL>lock.wait()<EOL>remove_hotkey(remove)<EOL><DEDENT>else:<EOL><INDENT>while True:<EOL><INDENT>_time.sleep(<NUM_LIT>)<EOL><DEDENT><DEDENT>
Blocks the program execution until the given hotkey is pressed or,
if given no parameters, blocks forever.