HotKeyMaker is a program that executes a file or program when you press keys. This is useful for people who want to execute files for a Windows Media Center remote control, like to close a program when you press TAB, etc. Just make a batch file to close your programs, and use this program to execute it on a key press. HotKeyMaker will minimize to your system tray on startup for convenience and has a right click context menu, and a double left click to show the form. You may also use modifier keys (hold key) to make combinations like CTRL + 1 or ALT + 2 if you wish to do so.
How does it work?
This program was built for Windows in C# with Visual Studio 2013 and is open source at my github repo. It uses the RegisterHotKey and UnregisterHotKey functions and a dictionary of Virtual Keys used from the Virtual-Key Codes on U.S. keyboards. Because of how the RegisterHotKey functions this program will completely take over what the key does, so it can be minimized and hidden while it works.
If your a programmer who wants to know how these functions operate, view the source code and I think it will give you a very good idea of how to accomplish this in C#.