Is there an OS X app to route keyboard via bluetooth?
Type2Phone

This app does pretty much exactly what you're looking for. It turns your Mac into a Bluetooth keyboard that you can pair your iOS device to. When you type into the app, that text gets sent to the device as if you were using a directly connected keyboard.

It's available on the Mac App Store for $4.99.