Have you tried it in a different USB port and on another cable, and another device on that cable and port? Nothing should have broken when removing RAM so you need to be sure what has, if anything. Windows seeing a 'new' keyboard (it isn't intelligent enough to realise it's the same board in a different port) might be enough to get it working again.