I found your answer! It is a hardware key logger! It is explained in the book 101 Spy Gadgets for the Evil Genius.

You are very welcome.

Walter