MacBook keyboard error, only letters not working
I had some similar issues with USB keyboards attached to an iMac. I solved this issue by deleting the contents of the Library/Caches folder from my user session (the Home icon) and rebooting the Mac.