The code is currently using the keyboard event's key code, which has been deprecated. You can read more about it [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode).