How to manipulate iOS text using the keyboard