Add edit_transpose and bind ^T in the REPL

Also prevent other unprintable and unused control codes from being entered
Merge pull request #6467 from mbauman/repl-transpose

Add edit_transpose and bind ^T in the REPL