This question already has an answer here:
I have an issue where only QWERTYUIO keys are working sporadically or just not working. I have to press them a lot of times to start working and they work for a while and stop again. I have tried reseting PRAM and SMC but with no luck. When I use the Keyboard viewer they keys are not even being registered when I press them.