To get started using Gmail keyboard shortcuts, which are turned off by default, you need to turn them on through Gmail's settings.
To use your iPhone keyboard as a trackpad while typing, just press and hold your spacebar, then move the cursor with your finger.