JavaScript Key Codes
Press key or key combination to obtain code.
JavaScript key codes are needed when writing code expected to handle
keyboard input.
You should check both of the following values as
onkeyup /
onkeydown and
onkeypress handle the
control and shift keys differently.
© Andrew Scott 2006 -
2025,
All Rights Reserved