Updated GLFWcharfun to take scancode argument