update to new glfw key event function to fix compile error