How to control keyboard via GUI button.

Hello everyone.

I’m developing a project for touch screen device. And it has many GUI text field, so I need to make On screen keyboard.
Like if I were to press “w” GUI button, then it will show “w” on focused text field like when I pressed “w” button on my keyboard. But I don’t know how to control my keyboard to press any button via scripting.

If you have any better choice plz explain to me.

I’m not very good in english sorry if I make you confused. : (

Thank you.

If you know which button is being pressed, then you can insert the characters into the text fields yourself. Just add the character to the end of the string in the text field. The other buttons might be more difficult, but I don’t believe there is a way to tell the keyboard to do an input.