get_key
This function returns a boolean whether a key is currently pressed on the keyboard. See Lookup Tables for a list of valid keycodes.
Arguments
key: string
Return values
pressed: boolean
This function cannot be called during startup.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
This function returns a boolean whether a key is currently pressed on the keyboard. See Lookup Tables for a list of valid keycodes.
key: stringpressed: booleanThis function cannot be called during startup.