Hi Maha,
you can feed the application with keyboard events by using the root-object's method DriveKeyboardHitting(). This is exact the same interface, which is used to feed the application with events generated by a real hardware keyboard.
An example demonstrating its usage is implemented in two virtual keyboard component templates:
- Please see the chapter Creating components from templates to understand the concept of component templates.
- Now you can add to your project a new component from the template Alphanumeric Keyboard.
- Open the just added keyboard component, you will see following:

- Open the method activateKey. In the Code Editor you see its implementation including the usage of the above mentioned method DriveKeyboardHitting(). The method activateKey does exactly what you want. It feeds a keyboard event to the application according to the pressed key within the virtual keyboard:

Best regards
Paul Banach