Fix getEventModifierState, no allocations

Alternative to #1637 that doesn't allocate on every event.

Test Plan: Crossed fingers.
Merge pull request #1638 from spicyj/getmodifierstate-2

Fix getEventModifierState, no allocations
Fix ExecutionEnvironment.canUseDOM for IE8.