Added a comment
Changes to keypress handler

This is mostly to fix funny behavior in Chrome introduced after
switching to the number inputs.