You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if a key is NOT being pressed (key not held down)
Parameters
Parameter
Default Value
Note
key
Return value
Condition
Return Value
(always)
number
Notes
Example
raylib.InitWindow800, 600, "Key Up Demo"whilenotraylib.WindowShouldCloseraylib.BeginDrawingraylib.ClearBackgroundcolor.whiteifraylib.IsKeyUp(raylib.KEY_ESCAPE) thenraylib.DrawText"ESC is up (not held)", 10, 10, 20, color.greenelseraylib.DrawText"ESC is being held!", 10, 10, 20, color.redendifraylib.EndDrawingendwhileraylib.CloseWindow