keyboard_return_keystroke_waiting_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== KEYBOARD (return keystroke waiting) ====== | |
KEYBOARD( )
The KEYBOARD procedure returns the keycode of the first keystroke in the keyboard buffer. It is used to determine if there are keystrokes waiting to be processed by an ASK or ACCEPT statement.
Return Data Type: | UNSIGNED |
Example:
LOOP UNTIL KEYBOARD() !Wait for any key
ASK
IF KEYCODE() = EscKey THEN BREAK END !On esc key, break the loop
END
See Also:
keyboard_return_keystroke_waiting_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1