What year macbook?
Apples official fix for keyboard repair is a new top casing and it's pricey.
If you're ambitious and not intimidated by technology, iFixit.com has some great guides on disassembly and aftermarket keyboards are cheap enough on Amazon.
I replaced mine, feels OEM - works great, was a project to replace but not bad. It consists of stripping your mac down to the top case and removing the glued on cover/backlight and continuing on to remove 50 little screws (a good screw driver kit is a must).
Gives you a good sense of accomplishment though when you turn it on and it works