Whenever I need to write a keyboard listener, I always have to go back and search through old code to get the exact syntax. I then end up copying and pasting a whole bunch of code. I decided it was time to create a DLL that will handle all of this work for me. I also decided that I will post the DLL up here for anyone to use as they see fit.
The DLL is copyrighted, however, it is free for distribution with personal or commercial applications.
The setup package, which includes a help file, a sample app, and the DLL, can be downloaded from the downloads page, or from the link below.
Download:
KeyboardListener.msi
The sample app shows off the basic functionality of listening for one particular key, a set number of keys, or all key presses on a system. Below is a screenshot of the sample application. This dll works system wide, not just within the application that is using it.