This is a very real problem that Microsoft refuses to address. I have taken my device to my local store, where their employees admitted to me that the Surface Pro 4 is the "black sheep of the Surface line" and their official advice to me was to purchase a third party bluetooth keyboard, or purchase a $600 replacement out of warranty, as if I have any remaining trust in their products. It is so insulting to overspend on their keyboard accessory in the first place just to be told to buy third party.
I also DM'd their @Microsofthelps twitter who then passed me along to one of their engineers, who continued to misunderstand the issue, thinking that the type cover itself was defective. Furthermore, they keep hammering on this fact that the device is out of date at 3 years of age, as if the Surface Pro 5, 6 and 7 are different and better in any significant way. It may be 3 years old but it was working fine before they pushed an update that bricked it. Just because you slap a new number on this year's device doesn't mean mine is a POS. I should have gotten 5 years of use out of this easily, and that's me being forgiving. At every turn they have made me feel like a fool.
At no point has Microsoft owned up to this issue or acknowledged that it may be a firmware corruption. All they do is infer user error or misuse and talk to you like you're crazy. "Clean your ports with an alcohol wipe", as if I'm storm chasing tornadoes in duststorms and not just sitting on my couch at home. How can the connecting port even get dirty if you never take the type cover off?
I know it doesn't mean anything to Microsoft, but I will never again spend any of my money on their devices or hardware. The fact that I have a defective $1100 computer who's functionality is now severely limited, and to not have this problem taken seriously is really demoralizing.