in reply to CPAN Module or API for key logger

It depends on whose keystrokes you want to log. On linux, you need to patch the kernel to do effective keylogging, a perl module will not do it. See lkl for a userspace only solution. But there are ways around loggers, see Tk Virtual Keyboard

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku