title: Alternatives to event.which and event.keyCode in JavaScript
body: <p>I tried to use the event.which and event.keyCode in my JavaScript code today and got a line ruled across each. I read that both have been deprecated on my VSCode.</p>
  <p>Does anyone know the alternatives to them?</p>