Catch mouse events.