If you have the web interface enabled, open the IP address of the PS3 and see if it opens the webman page.
Use this for a web/mouse method:
You must login or register to view this content.
You won't be able to use the keyboard actually, unless you code it up to request each URL for the keyboard button.
However I made this which can be used for clicking each button within a program:
You must login or register to view this content.