Updated 'user_input' to support GLFW