When a key is held down and the window is resized, the key is "stuck" as GLFW_PRESS until it is released again (usually by pressing it down again). Perhaps all keys could be made "released" in GLFW_RELEASED when it is resized.