Is there any way to tell whether the on-screen keyboard is enabled on Blackberry?
Do you mean, if the virtual keyboard is opened or closed? In BlackBerry 10 you can listen for these events.
Documentation is here: https://developer.blackberry.com/html5/apis/blackberry.app.html#.event:keyboardClosed
There is a known issue with it: