Alt/Cmd-S

Alt/cmd-s will save and close the TextEditor.

Hold alt on the pc, command on the mac, while typing s to invoke this command.

Loss of focus will also save and close the TextEditor.