My guess is that part of your keyboard died.
However, you can try turning it upside down and lightly tapping it on the bottom to see if anything shakes loose - like food crumbs or a paperclip or...
If that doesn't help, since they keyboard is already dead, you can try opening it up and see if you can find a loose connection.
Or just buy a new keyboard.