Small but important detail changed. Instead of using 'keypress'  developers are encouraged to use 'keydown' / 'keyup' to prevent any browser incompatibilities like missing key identifiers in Chrome browsers (e.g. "Enter" or "Backspace")