8/16/2024 - Detect what key is pressed on the keyboard. On Keypress down, it will show you the key board code used for the particular key in the keyboard.

function keyboardKey(e:any) {
  e = e || window.addEventListener;
  alert(e.keyCode);
}
document.onkeydown = keyboardKey