Create(Key: Integer; ShiftState: Integer);
Key - code of the keyboard key.
ShiftState - code of pressing the auxiliary keys (SHIFT, ALT, and CTRL). Use ShiftState enumeration type to assign the required value. If it is not necessary to use auxiliary keys, 0 should be passed as a value.
The Create constructor creates an argument of the OnKeyPreview event.
See also: