You'll have to jailbreak to replace/tweak the default keyboard. Check out the Hacking section and read the stickies (posts at the top of the thread). I'm not sure how much is possible.
There are a few keyboard apps in the App Store, but they only work in the app. You have to copy/paste the results to use them anywhere else. I don't use any of them, so can't recommend any.