Use modern KeyboardEvent properties when inspecting key code

Description

KeyboardEvent#which and KeyboardEvent#keyCode are deprecated in favor of KeyboardEvent#code. Modern browsers should support this new property.

AUI uses e.which and e.keyCode in quite a few places.

This story is about updating the event handlers in all of AUI's code so it uses the non-deprecated property.

The scope is anything that ships in AUI's production code. That will include AUI's own code, any direct dependencies, and any transitive dependencies of those.

Our test harness will need to be updated as well. Any use of CustomEvent will need scrutiny.

Environment

None

QA Kickoff Check-In

Usage described in documentation
Demonstration of all states
Interactive state (screen readers)
Visual regression tests
Unit tests
Navigation (only keyboard / only mouse)
Component render legibly

QA Demo Check-Out

P2 plugin
Browsers (Edge/IE11/Firefox/Chrome/Safari)
Resizing
Zoom in/out
Navigation (Keyboard/Mouse)
Focus
Element status (At Rest/Pressed/Selected/Read Only/Disabled)
Cursors
Tooltips
Audio

Assignee

Unassigned

Reporter

Chris "Daz" Darroch