Which OS are you using, in Windows you can use almost every language
together with the WinAPI's. I once wrote a keylogger with Delphi but you
can also use VC++ (or other languages).