Occurs when the user presses a key while the Text Control has the input focus. To interpret ANSI characters, use the KeyPress event.
Syntax
KeyDown(KeyCode, Shift)
Parameters
| Parameter | Description |
|---|
| KeyCode | Is the virtual-key code of the pressed key. When this value is changed, Text Control handles the changed key. |
| Shift | Informs about the state of the SHIFT, CTRL and ALT keys at the time of the event. It is the sum of one or more of the following values: |
Shift
| Value | Description |
|---|
| 1 | The SHIFT key was pressed at the time of the event. |
| 2 | The CTRL key was pressed at the time of the event. |
| 4 | The ALT key was pressed at the time of the event. |
Data Types
| Name | Data type |
|---|
| KeyCode | Integer |
| Shift | Integer |