Triggertastaturereignis JavaScript auslösen

// trigger when keydown
document.addEventListener('keydown', e => {
	// do some cool stuff
})

// trigger when keyup

document.addEventListener('keyup', e => {
	// do some cool stuff
})
Nirvana-Forever