added keypress events for control