A number linked with specific key on keyboard in many languages. May be different for one key depending on browser or platform. Use this tag for questions about the keycode property in a language.
Many languages associate different keys on the keyboard with different numbers, called "keycodes". The keycode
is not to be confused with the ASCII character code, though there are some similarities. For example, JavaScript interprets an A keypress as 65
(ASCII code for capital "A") whether or not the Shift key was pressed or Caps Lock was enabled.
For more information about the JavaScript property, see
- http://www.quirksmode.org/js/keys.html
- https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
For more information about the C# KeyEventArgs.KeyCode
property, see the Microsoft documentation.