function keyPressed (client-side)
Available since version: 0.3.0
This function will check whether the specified keyboard key is pressed.
Declaration
boolean keyPressed(number key)
Parameters
numberkey: The key code to check. For more information about key codes, see Key Constants.
Returns boolean
True if the key is currently pressed, false otherwise.