Possible a Little hard to fully tell you what to try without seeing exactly what you are doing.
--
On a side note I wrote a virtual keyboard for hype a few years ago.
Just downloaded and tested it. Still works ok as far as I can see.
It may help/give you some ideas.