Fixed keypress event.