Simulating Events

Use FakeKeystroke to simulate a keystroke. This function has the same effect as actually pressing the key at the keyboard.

Note   The order in which the fake keystroke event is received in relation to other events is not defined, so you must use this function with care.