Chosen Solution

So I did a battery replacement on my macbook due to getting the service battery option and the macbook acting weird. Before this everything else was working fine and turning on, but would occassionally shutdown with no warning. The problem was narrowed to the battery IC or the battery so I went for the cheaper replacement before checking anything else. The battery was replaced following this guide and everything seems stable right now and is working but arbitrarily some keys just aren’t working. The keys I’ve noticed not working are anything to the right of the j,m and i button; the function keys and the power button. The number buttons are working though oddly enough. I’ve tried reseating the keyboard ribbon cable but maybe I need to lift the logic board and check again

If you are having issues with a couple keys on your keyboard the most likely culprit is the keyboard controller either on the logic board or on the keyboard itself. If it’s on the logic board then you will need to have one soldered on the logic board for you if you don’t feel safe (or don’t want to) doing it. If the controller is on the keyboard itself then you would need to replace the keyboard to fix that issue. Word of wisdom, depending on the model MacBook you own may require you to replace the entire upper frame as Apple has recently (within the past 5 or so years) began to make the keyboard and upper frame a single unit. I would recommend taking your machine to a laptop repair shop in your area that provides free diagnostics for additional assistance in this matter.