Implements Enter behavior from #4, "Magic Undo", Esc behavior, restore Ctrl-C for copy