The keyboard buffer can also be erased using the commands SET TYPEAHEAD and KEYBOARD.
Command CLEAR TYPEAHEAD Foundation
Deletes all characters from the keyboard buffer or the event queue.
CLEAR TYPEAHEAD
The command CLEAR TYPEAHEAD deletes all characters currently found in the keyboard buffer or event queue, respecively. The command is generally used before calling functions which independently react to keyboard input. This includes functions like AChoice(), DbEdit() or MemoEdit(). In such cases, CLEAR TYPEAHEAD guarantees that no key codes or events are already waiting for processing.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.