changed ButtonState enums. GLFWkeyboard now updates before glfwPollEvernts()
exctracted switch into seperate method