Chosen Solution

Got a MacBook Pro 2016 with Touchbar (A1706) second hand from a friend of mine and we formatted it together and after formating the keyboard stopped working. It doesn’t even work on boot (eg. I can’t boot to recovery or reset SMC). Could it be that there is a problem on the software side or did something hardware wise break and it was unlinked to the format? The Touch Bar works with no problems as well the Trackpad. Everything works except for the keyboard. Even the backlight works. I have also disconnected and reconnected the battery to reset the SMC I did the format with a USB drive. I first booted into the recovery and wiped the disk. Then I shut it down and inserted the usb and proceeded to install. I installed the latest Mojave version. I am now planning to go back to Sierra to see if the problem is software related. Below are pictures of USB, SPI, Input sources

First go into your System Report - Open > About This Mac > System Report >Hardware and click on USB. Post a snapshot of the upper section so we can see hierarchy and then switch to the lower doing the same so we can see discreet hubs and devices listed. You may need to slide the window to get the other part of the listing. Then go into your preferences settings and open the Keyboard panel, click on the Input Sources and take a snapshot of it as well. Post all of this here for us to see Adding images to an existing question == Update 6/22/19 == Sadly, it does look like the keyboard logic has failed. Sorry At this point you’ll need to visit an Apple Store and have them repair it. I’m not sure if you have a true keyboard issue or if the logic board has a failure. I think your friend had a liquid spill which damaged the circuitry.