What do you mean you decoded your keyboards?
Sorry for the delayed reply. I actually have a job, a wife and a house with a contractor present.
Anyway, the detailed instructions are found at
www.mameworld.net under the emuadvice link. (search for it).
In general, think of the kids game "battle ship". Keyboards work the same way. Most keyboard "decoders" have an 16x8 matrix, or something like that (my internet connection is too slow to check!).
You need to figgure out for each pair of pins on the encoder, what is the keystroke. The reason this is important is pretty easy:
Remember "battle ship"? consider A1, A2, B1, B2. That's a square, right? Well if you only have 4 pins, then if you have three of those held down, you can't tell if you press the third one or not.
Remember above we talked about 16x8 Matrix? Well, 16 pins is exactly enough to have 12 buttons (6 per player) and 2 sticks (2 axis x 2). If you want to play games like fighters, then it is imperitive that you find 16 different keyboard characters that correspond to 16 pins on the encoder.
The only thing you should feel comfortable about is:
the 16 characters you 'decode' for your keyboard hack will not be anything that makes sense for playing with a real keyboard.
If you're still with me, I'm sure that you have some real questions (I'm wasted now).
Read that section on Mameworld.net first, because it's really good, and then ask some specific questions.
Bob