Yeah Johan Thanks.
After more research, work and stealing this
https://github.com/comtel2000/fx-experience/blob/master/fx-onscreen-keyboard/src/main/java/org/comtel/javafx/robot/FXRobotHandler.java
class. I changed some things in the class though.
Now the keyboard works like a keyboard.
I also made it work for JavaFX8.
There are 3 branches javafx8 and master pretty much the same. and then
you have java7 (tested with jdk 1.7_51)
But I still have little styling issue. Some how JavaFx8 gives the keys
some lines(I tried setting the theme to caspian but the lines remain)
and JavaFx7 doesnt give lines but some padding are lost. (See attached
pics)
Hope this helps someone.
Thanks,