event.which js code example
Example: event.which
var x = event.which || event.keyCode; // Use either which or keyCode, depending on browser support
var x = event.which || event.keyCode; // Use either which or keyCode, depending on browser support