jQuery’s ‘keypress’ doesn’t work for some keys in Chrome. How to work around? by Tarik Try handling keydown instead.