Implement mouse event.