Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need a Windows program which can display all keys pressed on a keyboard, basically an equivalent of the xev(1) 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 doing, 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

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
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
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

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

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

My usual quick solution for this is keylook.exe<1>.


share|improve this answer

Your Answer


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.