The IKeyPreviewEventArgs interface contains properties of the argument of the OnKeyPreview event that occurs before the events related to key pressing.
| Property name | Brief description | |
| Cancel | The Cancel property indicates whether the further event related to the keys pressing occurs. | |
| KeyMessage | The KeyMessage property returns value that indicates why the OnKeyPreview event was generated. |
| Property name | Brief description | |
| Key | The Key property determines code of the key that was pressed or released. | |
| ShiftState | The ShiftState property returns value that corresponds to the state of auxiliary keys (SHIFT, ALT and CTRL) when the keyboard actions are performed. |
See also: