src code

instance method Input#isKeyDown

Input#isKeyDown(keyCode) → Boolean
  • keyCode (Number) – The keyCode to check if it is being pressed.

Returns true if the key keyCode is currently being pressed down, or false otherwise. keyCode can be any of the Input.KEY_* values, or any other key code value for a input device with more keys (like a full keyboard).