ignore keypress events of non-printable keys in Firefox