JS Keydown tylko raz

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