Fix #599. Correctly register numpad callbacks.