Google's Gboard keyboard has some fancy new tricks up its sleeve; now I never want to use my hands to type ever again.
You can undo and redo typing on an iPhone by quickly shaking your device. You can also use the "Select" and "Cut" features to delete (and paste) text.