js when key is pressed
snippet in javascript

js when key is pressed

user2056

document.addEventListener("keypress", function(event) {
	// do stuff
});