KeyboardEvent.keyCode is a pain as you have to keep looking up what the codes mean, which key they are pointed to. What keys are 62, 47, 39, 70?
I would like to upgrade to use
KeyboardEvent.key so we can use strings that clearly show the name of every key. ‘A’ is A, ‘D’ is D, ‘Enter’ is the Enter key, ‘Space’ is the spacebar (though for IE, it is ‘Spacebar’).
My thought is that the key press function should be able to accept a number or a string, and use the correct property based on which is supplied.