Fixed some AY-3 and keyboard scanning errors in the rom, and added pio and ay interaction in the emulator !