| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== KEYBOARD (return keystroke waiting) ====== | [[isupper return upper case character .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[keychar return ascii code .htm|{{btn_next_n.gif|Next page}}]] | | || **KEYBOARD( )** {{blk2blue.jpg|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 get one keystroke .htm|ASK]] [[accept the event processor .htm|ACCEPT]] [[keycode return last keycode .htm|KEYCODE]] [[clarion keycodes.htm|Keycode Equate Labels]]