Add "getModifierState" to the MouseEvent interface

Decided it was a good idea to polyfill this feature and thus share the implementation with `KeyboardEvent`.

Ignore this PR.