Simulating keypresses

Hi, all!
There is problem in Photoshop text tool - i can't enter national (russian)
letters there, but can do it holding Alt and entering character code (it's
much less comfortable, eh?). This tool also can't recieve text thru
clipboard. I want to write a tool (using Delphi), that will get text and
then emulate keypresses for entering text to Photoshop (Alt + char code).
1. Is it possible? (i mean hold Alt and type digits programmatically)
2. How???
Many thanks for advice
Please send answer to gar...@mail.ru

Garcia