Have you tried just shutting it off (no power at all) and then turning it back on to see if it will allow the keyboard to work? I know it is a very simple thing, but people tend to forget to try the simple option first.
If it is running on Android, what version of Android is it using?