Keyboard Test

PassMark KeyboardTest™ allows users to quickly check that all the keys on their computer keyboard are functioning correctly, check the keyboard LED's, look at the internal scan codes being generated by the keyboard and measure typing speed.
The down and up stroke of each key is registered and highlighted on a graphical image of a keyboard. Each time a key is pressed a variety of state information is updated in the window and on the keyboard picture.
Possible uses of the software include testing faulty keyboards, batch mode testing of keyboard in a production line environment, a typing tutor aid to practice your typing and examining the internal key codes.

You can download this Software easily from Google
write PassMark KeyboardTest and download it
It is Free