imgui.IsKeyPressed imgui.IsKeyPressed(key: number, repeats: boolean?): boolean Whether a key went down this frame. Passing false stops it repeating while held.