Some keystrokes do not generate characters (such as ENTER and TAB). Some keystrokes represent actions (such as BACKSPACE and BREAK). To send these kinds of keystrokes, send the arguments shown in the following table:
Key |
Argument |
BACKSPACE |
{BACKSPACE}, {BS}, or {BKSP} |
BREAK |
{BREAK} |
CAPS LOCK |
{CAPSLOCK} |
DEL or DELETE |
{DELETE} or {DEL} |
DOWN ARROW |
{DOWN} |
END |
{END} |
ENTER |
{ENTER} or ~ |
ESC |
{ESC} |
HELP |
{HELP} |
HOME |
{HOME} |
INS or INSERT |
{INSERT} or {INS} |
LEFT ARROW |
{LEFT} |
NUM LOCK |
{NUMLOCK} |
PAGE DOWN |
{PGDN} |
PAGE UP |
{PGUP} |
PRINT SCREEN |
{PRTSC} |
RIGHT ARROW |
{RIGHT} |
SCROLL LOCK |
{SCROLLLOCK} |
TAB |
{TAB} |
UP ARROW |
{UP} |
F1, F2, ... F16 |
{F1}, {F2}, ... {F16} |
0, 1, ... 9 on number pad |
{NUM_0}, {NUM_1}, ... {NUM_9} |
. on number pad |
{NUM_.} |
/ on number pad |
{NUM_/} |
* on number pad |
{NUM_*} |
- on number pad |
{NUM_-} |
+ on number pad |
{NUM_+} |
ENTER on number pad |
{NUM_ENTER} |
HOME on number pad |
{NUM_HOME} |
PAGE UP on number pad |
{NUM_PGUP} |
END on number pad |
{NUM_END} |
PAGE DOWN on number pad |
{NUM_PGDN} |
UP ARROW on number pad |
{NUM_UP} |
DOWN ARROW on number pad |
{NUM_DOWN} |
LEFT ARROW on number pad |
{NUM_LEFT} |
RIGHT ARROW on number pad |
{NUM_RIGHT} |