Skip to content

function keyToggled (client-side)

Available since version: 0.3.0

This function will check whether the specified keyboard key was toggled from unpressed to pressed state.

Declaration

boolean keyToggled(number key)

Parameters

  • number key: The key code to check. For more information about key codes, see Key Constants.

Returns boolean

True if the key was toggled, false otherwise.