Skip to main content

KeyboardManager.isKeyPressed

Function

Returns true if the specified key is currently pressed.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

isKeyPressed(key): boolean

Returns true if the specified key is currently pressed.

Parameters

ParameterType
keyKeys

Returns

boolean