switched event.charCode to event.which since that's what jQuery likes