Refactoring

We're down ~500 lines of code on mouseEvents.js! And with even more functionality!
I was planning ahead. Soon enough, there will be a whole new type, and I will need to check the type against L T and P.