The getKey command gets the next keystroke.
For example, if you enter
and hit the A key, then the variable asciicode will have the value 65, which is the ASCII code of capital A.