

Determine if a key has been pressed and store this in a variable.

If no key has been pressed, the program should continue without waiting.




let keycode=0
print 1 "Press any key and its key code will appear."
while keycode=0
let keycode=key()
wend
print 1 keycode
end