Stop editing when enter is pressed.