Reference TKeyboard
Declared in Codebot.Hardware.pas on line 384
TKeyboard holds the state of the keys at the last scan. Keys are VK_ codes from Codebot.Platform. VK_SHIFT, VK_CONTROL and VK_MENU are down if the key on either side of the keyboard is down. A code which is not a key, such as a mouse button, is never down. Use the Keyboard function to get the one instance.
TKeyboard = class
public
{ True while a key is held down }
property Key[KeyCode: Integer]: Boolean read GetKey; default;
{ True if a key went down since the frame before }
property Pressed[KeyCode: Integer]: Boolean read GetPressed;
{ True if a key went up since the frame before }
property Released[KeyCode: Integer]: Boolean read GetReleased;
{ The shift, control and alt keys which are down }
property ShiftState: TShiftState read GetShiftState;
end;