def record(until='<STR_LIT>', suppress=False, trigger_on_release=False):
start_recording()<EOL>wait(until, suppress=suppress, trigger_on_release=trigger_on_release)<EOL>return stop_recording()<EOL>
Records all keyboard events from all keyboards until the user presses the
given hotkey. Then returns the list of events recorded, of type
`keyboard.KeyboardEvent`. Pairs well with
`play(events)`.

Note: this is a blocking function.
Note: for more details on the keyboard hook and events see `hook`.