JS Keydown nur einmal

document.addEventListener('keydown', (e) => {
  if (!e.repeat)
    console.log(e.key);
});
Pleasant Pigeon