Skip to content

function disableKey (client-side)

Available since version: 0.0.0

This function will disable/enable specified keyboard key, like: ESCAPE, TAB, etc.


void disableKey(int keyId, bool toggle)


  • int keyId: the id of the key. For more information see Key constants.
  • bool toggle: true when you want to disable specified keyboard key, otherwise false.