My skin has been using keyboard navigation for years, with code borrowed and put together from quite some sources, and it used to work on major browsers according to various testers.
I thought it might be time to update the code, after reading that KeyboardEvent.keyCode is depracted and "may cease to work at any time" according to here
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
One should use KeyboardEvent.code instead, but "Unfortunately, some browsers still don't have it, so you'll have to be careful to make sure you use one which is supported on all target browsers. Google Chrome and Safari have implemented KeyboardEvent.keyIdentifier, which was defined in a draft specification but not the final spec."
Does someone have experience with a proper up-to-date and cross-browser compatible key detection routine?