Added comment to explain keypress handler.