A distinction is made between characters and function keys.
The constant CODED can be used to distinguish between them.
The following example uses the arrow keys (CODED) to move a rectangle across the screen: