https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which <img width="848" alt="image" src="https://user-images.githubusercontent.com/10626756/133927136-7e40a164-e36b-49f4-ba41-c8bc980739cb.png"> https://github.com/ccampbell/mousetrap/blob/2f9a476ba6158ba69763e4fcf914966cc72ef433/mousetrap.js#L721 ``` if (typeof e.which !== 'number') { e.which = e.keyCode; } ``` should becomes something like ``` const charCode = (typeof e.which == "number") ? e.which : e.keyCode; ``` and `charCode` should be passed to methods later instead of using `e.which` everywhere.