RosettaCodeData/Task/Keyboard-input-Keypress-check/Plain-English/keyboard-input-keypress-check.plain
2023-07-01 13:44:08 -04:00

18 lines
377 B
Text

To run:
Start up.
Handle any events.
Shut down.
To handle any events:
Deque an event.
If the event is nil, exit.
Handle the event.
Repeat.
To handle an event:
If the event's kind is "key down", handle the event (key down).
To handle an event (key down):
Put the event's key into a key.
Write "" then the key to the console.
If the key is the escape key, relinquish control.