IsKeyBeingReleased
Description
Check if a keyboard key was just released.
function IsKeyBeingReleased(key) --[[ ... ]] end
Parameters
key
:string
- The name of the key to check.
Return Values
justReleased
:boolean
- Returnstrue
if the key was just released, otherwisefalse
.
Example
if IsKeyBeingReleased('W') then
print('W key was just released!')
end
See Also
- DSL
IsKeyBeingPressed
- Checks if a key was just pressed.IsKeyPressed
- Checks if a key is currently pressed.