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.
You can use Firefox keyboard shortcuts for all of the most common tasks you want to perform in the web browser.