Plot:Wait for key
From OHRRPGCE-Wiki
wait for key (key)
Waits for the player to press a key. You can use the follwing constants: any key, up key, down key, left key, right key, use key, cancel key, or menu key. If you do not specify, then any key will be used.
[edit] Examples
show text box(623) # "press cancel!" wait for key(cancel key)
Additionally, this command returns the scancode of the key that is pressed.
[edit] Examples
variable(bob) bob := waitforkey(anykey) # bob now has the value of the pressed key
