Skip to content

function isKeyPressed (client-side)

Available since version: 0.0.0

The function is used to check whether the specified keyboard key is pressed.


bool isKeyPressed(int keyId)


  • int keyId: the id of the key. For more information see Key constants.

Returns bool

true when the key is pressed, otherwise false.