I assume that all the other buttons work as they should?
Do the non-working keys work correctly when you plug a keyboard into your PC & press them on it?
If yes then re-check the wiring & especially the grounds to those buttons that no longer work.
That's my best guess with the tad of information you provided.
Pessimist: Oh, this can't get any worse!
Optimist: Yes, it can!