Sys.UI.DomEvent charCode Field
Gets the character code of the key that raised the associated event.
Syntax
var charCode = domEventVar.charCode;
Return Value
An integer value that represents the character code of the key that was pressed in order to raise the event.
Remarks
Use the charCode field to get the character code of the pressed key.