refs #23, bugfix, clone the TextEditorKey when copying keys