Use an Apple Wireless Keyboard

You can use an Apple Wireless Keyboard (available separately) to enter text on your iPhone. The keyboard connects via Bluetooth, so you must first pair it with iPhone.

Once it’s paired, the keyboard reconnects to iPhone whenever it’s in range—up to about 30 feet (10 meters). When it’s connected, the onscreen keyboard doesn’t appear.

See Bluetooth devices.