Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need a program which can display all keys pressed on a keyboard (windows), basically an equivalent of the "xev" program for X11, in order to troubleshoot a problem I have which I'm not sure is hardware related or not. Googling for "keyboard logging" gives a whole bunch of various programs, all geared towards secretly figuring out if your spouse is doing something he or she shouldn't be doint, and several of them have warnings about "this program has been reported to be malicious".

Can anyone recommend a good keyboard event logger, in the spirit of "xev"?

share|improve this question
    
Good question, I've got a problem with random keys being "stuck" on my POS keyboard, so I've been looking for something like this and had the same problems finding it. –  Adam Neal Jul 22 '10 at 12:52
add comment

3 Answers

There's a utility in the windows SDK, called spy++ that can do this.

To log all keyboard messages make sure you enable all windows in the system checkbox, and filter for Keyboard message types.

share|improve this answer
    
How about global shortcuts captured by programs like WinAmp? They won't get through to Notepad then, right? –  JesperE May 13 '09 at 8:44
1  
I just tryed it with the aforementioned notepad setup - you're right, probgrams like winamp can intercept and terminate the messages. You can however use spy++ to log messages from all windows - and this does indeed include winamp gloabal shortcuts. i love winamp. –  chickeninabiscuit May 14 '09 at 1:11
    
Thanks, exactly what I needed to figure out what key is stuck on my stupid keyboard! –  Adam Neal Jul 22 '10 at 14:04
1  
spy++ seems to have disappeared from the Windows SDK. Do you have any idea where it's gone, or if there's a newer tool that provides this functionality? –  Gilles Jul 31 '13 at 9:39
add comment

I've used PassMark KeyboardTest before and it was just what I needed. It shows what keys are being pressed on the keyboard.

It's not exactly free, but there's a free 30-day trial download available. Of course, if you only need it once you can probably get away with the evaluation version.

share|improve this answer
add comment

I'm note sure the level of logging you want but could Keyboard Jedi be a solution?

share|improve this answer
    
Keyboard logger seems to report only registered shortcuts, not all keyboard events, which makes it mostly useless for this use case. –  Gilles Jul 31 '13 at 9:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.