In most places on your Mac where you edit text, you can quickly transpose the two characters around the cursor by pressing Control+T. For instance, if you accidentally typed teh
instead of the
, you can backspace one character so the cursor is between the e
and the h
and hit Control+T. Works in TextEdit, Pages, Mail and many other places.