The type command simulates keyboard keystrokes. You can include control characters as well as normal characters and they will respond as they would as if typed at the keyboard. A control key is specified by a ^ before the letter. For example:
type Testing^B^B^B go^Ewill type the word "Testing", move the cursor left three spaces, then type " go" and move the cursor to the end of the line, leaving "Test going" on the input line. This will probably happen too fast to see.
See also: xtype