Logo
Filmmaskiner.dk

Detect key press

<script type="text/javascript">
document.addEventListener('keyup', function(event) {
	document.getElementById("keyno").innerHTML = event.keyCode;
	if(event.keyCode == 13){
		alert("Enter");
	}
});
</script>

Common keycodes

13Enter
16Shift
17Ctrl
491
502
513
524
535
546
557
568
579
107+ (plus)
109- (minus)
37left arrow
39right arrow
38up arrow
40down arrow

Press key to get code:

xx

Creative Commons License
Filmmaskiner.dk by Kasper Lauritzen is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
(unless other is noted)