How can i make a program respond to hotkeys without it having focus. Im trying to make a bot to spam my friends on msn (actually this fag thats really annoying) and i want my bot to stop when i push ESC. Im aware of the keydown event but how do I do that when my program doesnt have focus?