The Key() emulates pressing a key on the 3270 keyboard.
In 3270 mode, the key will be translated from Unicode to EBCDIC using the current host code page. (To input EBCDIC characters directly, use the \e escape sequence with the String() action.) The character will be added to the current field.
In NVT mode, the key is sent to the host directly.
Key() takes a single parameter, the key to input. The key can take several forms:
- A single character, interpreted according to the current locale.
- An X11 keysym name.
- An APL keysym name.
- A Unicode code point, e.g., U+0061 for a. Unicode characters can also be entered in hexadecimal notation, e.g., 0x0061.
Each of these enter the character a.
Key(a) Key(U+0061) Key(0x61)
Here is a DBCS example.