I am not a huge fan of these portable keyboard but it’s nice to have it. Hocking up a keyboard to your iPhone wirelessly via Bluetooth should make more convenient for you.
However, it requires you to jailbreak your iPhone first.
The Bluetooth Keyboard Driver, just released in Cydia, fills this void for jailbroken iPhone users. The App is based on the open-source BTstack project, which also brought us the Wii Mote to work with apps like emulators. This driver runs on all iDevices with Bluetooth support. It is unclear yet, if it works properly on the iPhone 2G. The current version available in Cydia is titled as a "Demo", as it only works inside the app itself, but don’t fret for the developer says a version that works outside of the app (in the background/with other apps) and in Cydia "soon".