Create(Key: Integer; ShiftState: Integer);
Key is a code of the keyboard key.
ShiftState is a code of pressing the auxiliary keys (SHIFT, ALT and CTRL). Use ShiftState enumeration type to assign a desired 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: