who must be at the event 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