remove keypress event handler.