I have found and old stepmania board, but it is missing any electronics. I want to make it work as a keyboard with 6 keys, and it works with the first key (connect pin 3 and pin 6, with the code for other pins commented), but when adding keys I start getting missreads. I think my problem is how to connect them. I read in some examples a resistor is necessari, could anybody help me with the schematics? or help me if my code is wrong.
A keyboard is normally wired up as a matrix, as otherwise you very quickly run out of pins. Even with a matrix it's not Arduino friendly (unless you have a 51-pin Mega of course).
I describe what a matrix keyboard does in my video #13, which shows how you can wire up several switches using far less than one-wire-per-switch. Have a look to see if it gives you any ideas. URL in my signature below.
You will also doubtless suffer from switch bounce (Google that term if you're unsure) so you must either cater for that externally (in your hardware) or in your code (software). Or both.