| Part | Description | |
| object | Required. A valid object name. | |
| KeyCode | Required. An integer that represents the key code of the key that was pressed or released. | |
| Shift | Required. The state of SHIFT, CTRL, and ALT. | |
| Constant | Value | Description | |
| fmShiftMask | 1 | SHIFT was pressed. | |
| fmCtrlMask | 2 | CTRL was pressed. | |
| fmAltMask | 4 | ALT was pressed. | |