procedure KeyPress(var Key : AnsiChar); virtual;
Processes a key press message from the terminal component.
The terminal component performs no keystroke processing of its own. Instead, it defers that job to the emulator component where the knowledge of such processing for a given terminal is embodied.
The terminal component's KeyPress method—the standard CLX KeyPress virtual method for TWidgetControl descendants—merely calls the KeyPress method of its attached emulator. The Key parameter defines the key pressed.
The usual job of the emulator at this point is to send the character to the host computer by means of the terminal component's ComPort property.