The getkey, ungetkey, GetKey, and UngetKey functions use the following flags to determine the type of key.
Flag
Value
Description
NORMAL_KEY
0x00
Any of the alphabetic or numeric keys
FUNCTION_KEY
0x01
Any of the keys beginning with F
ENTER_KEY
0x02
Enter key
ESCAPE_KEY
0x03
Escape key
BACKSPACE_KEY
0x04
Backspace key
DELETE_KEY
0x05
Delete key
INSERT_KEY
0x06
Insert key
CURSOR_UP_KEY
0x07
Up Arrow key
CURSOR_DOWN_KEY
0x08
Down Arrow key
CURSOR_RIGHT_KEY
0x09
Right Arrow key
CURSOR_LEFT_KEY
0x0A
Left Arrow key
CURSOR_HOME_KEY
0x0B
Home key
CURSOR_END_KEY
0x0C
End key
CURSOR_PUP_KEY
0x0D
PageUp key
CURSOR_PDOWN_KEY
0x0E
PageDown key