I've been given a laptop to fix - it is 'randomly scrolling documents'. I'm almost certain it's a faulty connection in the keyboard, causing page-down to fire. Is there a program I can use to monitor all key presses from the keyboard to see if this is the case?
Alternatively, you can use PassMark Keyboard Test. It's a shareware with a fully functional and free 30 day evaluation. It allows you to quickly check that all the keys on your computer keyboard are functioning correctly, check the keyboard LED's and look at the internal scan codes being generated by the keyboard.
You could use AutoHotkey and KeyboardHook to see what keys are being pressed. You only need to create a script with this line
Save the file with and "ahk" extension and run it. Then in the Systray do a right click in the proper icon and select open. In the menu select View->History.....press F5 to update. This two sites could be of some help:
A really quick Google search turned up this: http://keyboard-tester.software.informer.com
I can't add a comment to mjsr but just wanted to follow up and say that his answer was incredibly useful for me. In my case I had to also add the line:
As I was trying to track the differences that were occurring between two devices when a QR Code was being scanned. The default #KeyHistory was only around 50 characters, whereas my QR contained around 150.