Makes the code a bit more readable. Inspired by Stop using deprecated `keyCode` on `KeyboardEvent` by chancancode · Pull Request #19185 · emberjs/ember.js · GitHub
Do we still need to set the
This more closely imitates the real event, and some of our dependencies still rely on
So in cases where they may act on those synthetic events we have to provide both properties.