Open the computer and remove the keyboard.
There is a small PCB on it, and there is a ribbon cable between that and the actual keyboard (IIRC).
Check that the cable is properly seated, and without breaks. Also check for damages on the actual PCB; those chips doesn't get hot, but on computers as old as the A500, chip-creep does happen, and if there are any socketed ships they might be loose.