finish editing on enter key press