Thanks to Shawn Hargreaves for the Allegro library.

#include <std_disclaimer.h>

   "I do not accept responsibility for any effects, adverse or otherwise, 
    that this code may have on you, your computer, your sanity, your dog, 
    and anything else that you can think of. Use it at your own risk."

This is a simple program designed to locate keyboard ghost/mask conflicts. 
It uses the same Allegro keyboard engine as M.A.M.E. so all limitations/
features should be the same.

This program runs in protected mode. If you are using Windows that should
be enough, else you will need to get cwsdpmi.exe.

Simply type ghostkey and you should get a (nearly) blank screen.  Any key
you press will display a scancode and a corresponding key name.  Hold down 
as many as you like, try combinations, or whatever you feel like.  Press 
escape to quit.

You can edit keys.txt and add descriptions for your particular setup. 
Just leave it in the format 'scancode keyname.'

Interesting observations:
The home keys (ASDFJKL:) on my keyboard can be pressed in any combination.
The 4 arrow keys will NOT register at the same time (Don't see needing it).

Known issues:
Any combination that will cause ESC to ghost will exit the program.
The Pause key toggles.