function
isKeyPressed (client-side)
Available since version: 0.0.0
The function is used to check whether the specified keyboard key is pressed.
Declaration
bool isKeyPressed(int keyId)
Parameters
int
keyId: the id of the key. For more information see Key constants.
Returns bool
true
when the key is pressed, otherwise false
.