How to get input from the keyboard in different ways.
This program demonstrates how to access the keyboard. The
first part shows the basic use of readkey(). The second part
shows how to extract the ASCII value. Next come the scancodes.
The fourth test detects modifier keys like alt or shift. The
fifth test requires some focus to be passed. The final step
shows how to use the global key array to read simultaneous
The last method to detect key presses are keyboard callbacks.
This is demonstrated by by installing a keyboard callback,
which marks all pressed keys by drawing to a grid.
The following projects include source code containing this keyword: