Well ,

If you know exactly what the name of the Window is you want to send a key to you could do a

setfocus("Windowname")

before sending keys ...

hth

Jochen
_________________________