Implemented the MOUSE_BUTTON_{UP,DOWN} events.