Keystroke recorder (global)

hey,

I am trying to write a keystroke recorder that will record EVERY keystroke
press in ANY open program (word,excel,notepad)

i think windowshookex has some thing to do with it, but i have know idea how
to use it

could somebody please tell me how to write such a program

BTW - iam i newbie

thanks

    NIGE