Exit Text Editor w/ Keyboard

Is there a way to exit the text editor dialog box without using the mouse?

Hitting enter creates a new line.

It would be nice if there was a shortcut key so that I’m not constantly reaching for a mouse just to click the ok button.

hit the escape key twice

Esc twice does exit the dialog but it does not save the changes I made.