System.getKeyState

Function/Meaning
Get key state
Type
Method of the System class
Syntax
getKeyState(code)
Arguments
code Specifies the virtual key code to get the state of.
Return Value
Returns true if the key is pressed, false otherwise.
Description
Gets whether the key corresponding to the key code specified by code is pressed at the time this method is called.