procedure KeyDown(var Key: Word; var KeyChar: System.WideChar; Shift: TShiftState); virtual;
virtual void __fastcall KeyDown(System::Word &Key, System::WideChar &KeyChar, System::Classes::TShiftState Shift);
OnKeyDown event dispatcher.
Key specifies the key on the keyboard.
KeyChar specifies the character code.
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the specified key was pressed with the control in focus.
KeyDown is automatically called each time keys are pressed with the control in focus.
Override the protected KeyDown method to provide other responses when a key is down while the control has keyboard focus.