Skip to main content

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 - Returns true if the key was just released, otherwise false.

Example

if IsKeyBeingReleased('W') then
print('W key was just released!')
end

See Also