There are 2 different issues you need to deal with, one is turning on the pocket without a working keyboard, another is re-flashing the keyboard.
If the pocket is on, you can re-flash a “soft-bricked” keyboard by putting in programming mode manually, pressing reset/prog in the keyboard PCB.
Check this thread:
But… first you need to turn your pocket on without a keyboard. As far as I can tell this requires re-flashing the system controller firmware to “factory mode” which turns on the computer when the power is connected. This can be done from another working computer, through the usb-c connector in the motherboard that accessible after opening the pocket.