Previous Up Next

12.2.3  Reading a single keystroke: getKey

The getKey command gets the next keystroke.

For example, if you enter

asciicode:= getKey()

and hit the A key, then the variable asciicode will have the value 65, which is the ASCII code of capital A.


Previous Up Next