A clever way you could do it is to have the keylogger save info into an external file, and then have the program email it to a certain email the next time the internet is accessed. The only problem is detecting the next time the internet would be accesse. You could have your game look for updates, and when they goto update, the email could be sent. Spyware in tgf is kinda lame. Fun to trick friends though!
"Computers in the future may perhaps only weigh 1.5 tons."
-Popular Mechanics, forecasting the development of computer technology, 1949