User Tools

Site Tools


keyboard_return_keystroke_waiting_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== KEYBOARD (return keystroke waiting) ====== Previous pageReturn to chapter overviewNext page

KEYBOARD( )

blk2blue.jpg

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:

ASK

ACCEPT

KEYCODE

Keycode Equate Labels

keyboard_return_keystroke_waiting_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)