Sets or retrieves the Unicode key code associated with the key that caused the event.
Syntax
HTML N/A Scripting event.keyCode [ = sKeyCode ]
Possible Values
sKeyCode String that specifies the Unicode key code. The property is read/write with no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Remarks
The property is used with the onkeydown, onkeyup, and onkeypress events.
The property's value is 0 if no key caused the event.
Applies To
HTML N/A Scripting event