in reply to mouse keyboard

What you should really try to do is to intercept the traffic between the page with the virtual keyboard and the server. In the end, whatever the way of inputting data, it all has to be send to the web-server by using the HTTP or HTTPS protocols. The normal way to do that is by linking to the web-site through a proxy-server you control and where you can log the traffic.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James