The iPhone has an interesting method of fixing typing mistakes: Shake to Undo.
Shaking your device to go back or undo a mistake has been around since 2009 and iOS 3. To enable Shake to Undo:
° Open your iPhone’s Settings.
° Navigate to Accessibility.
° Select Touch.
° Toggle the switch next to “Shake to Undo” to turn it on.
You should note that Shake to Undo is usually enabled by default on most iPhones. And it works in all, but not necessarily all apps. When you shake your phone, a pop-up will appear asking if you want to undo the last action.