Allows adding custom callback functions, which will be called when glfw fires an input event. Original issue: https://github.com/faiface/pixel/pull/293