well, any open source keylogger will do what you need and be safe.. for these on-the-edge programs, don't trust any shareware..
__________________
lisp hacker

running: FreeBSD 5.4 - still learning

develop with: SBCL + emacs for lisp, Anjuta IDE +gcc for c, SPE for python..
browse with: opera