This post is regarding the following related closed threads:
http://cboard.cprogramming.com/showthread.php?t=60077
http://cboard.cprogramming.com/showthread.php?t=60084

I am still waiting for a clarification from a moderator on why these threads were closed. In the rules it states:

Messages relating to cracking, (erroneously called "hacking" by many), copyright violations, or other illegal activities will be deleted.
Now the questioner is not asking how to crack software. He is not violating any copywrite, and contrary to what sean_mackrory said, he is not asking for anything illegal. There are several very legitimate uses for wanting to be able to view all keyboard input.

In my opinion, the only crime the question asker made was not doing a board search before creating a new topic, as code for doing exactly what he is asking for is on this messageboard already.