added keypress handler to submit form