Fix mouse events to be W3C compliant