Textareas need a ctrl-enter or cmd-enter to save and close, enter is a normal return. Done on keydown to prevent extra character added.