It may be preferable to use `event.which` here, which normalizes key input: http://api.jquery.com/event.which/

Also it may be worth caching the `$("input, textarea, select")` selector to avoid having to query the DOM here on each keypress.