Chosen Solution

Recently replaced a water damaged keyboard for a new one, track pad has worked fine so it’s not the shared connection. I’m worried the pin connector or the cable from the keyboard may be the problem. When I first started it up and put it back together, only the d key worked, but now it’s completely unresponsive after I tried to fix the connection. If anyone has a pin out for the A1502, that would also be very helpful. I have an external keyboard with remapped keys that works as well.

We really need to see what you are seeing here. Take a few pictures which are clean and sharp showing us the connector like this image

As well as the cables end Adding images to an existing question Where did you buy the keyboard and what is the Apple P/N you ordered.