Werner-Zenk.de - Zur Startseite

Tastureingaben (Key Codes) für JavaScript

Taste betätigen!

TasteKey CodeTasteKey CodeTasteKey Code
backspace8tab9enter13
shift16ctrl17alt18
pause/break19caps lock20escape27
page up33page down34end35
home36left arrow37up arrow38
right arrow39down arrow40insert45
delete46048149
250351452
553654755
856957a65
b66c67d68
e69f70g71
h72i73j74
k75l76m77
n78o79p80
q81r82s83
t84u85v86
w87x88y89
z90left window key91right window key92
select key93numpad 096numpad 197
numpad 298numpad 399numpad 4100
numpad 5101numpad 6102numpad 7103
numpad 8104numpad 9105multiply106
add107subtract109decimal point110
divide111f1112f2113
f3114f4115f5116
f6117f7118f8119
f9120f10121f11122
f12123num lock144scroll lock145
semi-colon186equal sign187comma188
dash189period190forward slash191
grave accent192open bracket219back slash220
close braket221single quote222
<script>
window.addEventListener("load", function () {
  window.addEventListener("keyup", taste);
});

function taste(event) {
 document.getElementById("taste").innerText = "Key Code: " + event.keyCode;
 }
</script>