pozdrav,
I have had a problem with A500 keyboard, maybe its related. there is a small piece of plastic insulator beneath the PCB; pins can punch through and make a short (to metal shielding). you should check that. I'd try the keyboard in another A500, to be sure its not CIA or something like that. perhaps replacing the capacitors on keyboard PCB would fix it.