Application Guide

80 Alphabetical Listing
getKey()
Catalog >
keypressed := getKey() will return a
key or an empty string if no key has
been pressed. This call will return
immediately.
keypressed := getKey(1) will wait till
a key is pressed. This call will pause
execution of the program till a key is
pressed.
Handling of key presses:
Handheld Device/Emulator
Key
Desktop Return Value
Esc Esc "esc"
Touchpad - Top click n/a "up"
On n/a "home"
Scratchapps n/a "scratchpad"
Touchpad - Left click n/a "left"
Touchpad - Center click n/a "center"
Touchpad - Right click n/a "right"
Doc n/a "doc"
Tab Tab "tab"
Touchpad - Bottom click Down Arrow "down"
Menu n/a "menu"
Ctrl Ctrl no return
Shift Shift no return
Var n/a "var"
Del n/a "del"
= = "="
trig n/a "trig"
0 through 9 0-9 "0" ... "9"