Documentation

Key Pressed - Open Dev Kit Documentation

Open Dev Kit Documentation :: GUI :: Key Pressed

GUI.GetKey(
  Key Keyboard Key
) Boolean
Returns whether a key is currently pressed

Parameters

Key Keyboard Key
Key to check

Return Value

Boolean

Lua Usage

local boolean = GUI.GetKey(key)

If you think anything is missing, please feel free to: submit documentation feedback on this page