how could i get the active window that text was typed in. So if they typed somthing in IE it would show as

[Internet Explorer] - Whatever they typed

I no this can be done...but how?