Examples Delphi

If you need to forward the keys to another windows control
(if you know it's handle) you can use:
PostMessage(OtherControlHandle, wm_Char, Ord(Key), 0);
If you need to simulate typing something into another application you can
use keybd_event(...) to simulate key presses and releases.
Regards,
Nikolay