Boot back into recovery and wipe the cache. If that doesn't fix it, you'll probably have to reflash the ROM. But if you go to
Google Play with a web browser on a desktop or laptop, you can probably download some other keyboard to the phone (when the phone is booted up normally) to see if it's a major problem (like the ROM) or a minor one (like a bad keyboard app). If the downloaded keyboard works, use it until you get the phone working. (I'd try
SwiftKey Keyboard first (it's always on my phones - I prefer it).