Fixed broken key repeat detection.
Fixed glfwShowWindow restoring maximized windows.

Fixes #264.