To resolve Windows Update, do the following:
Press Win + X → Terminal (Admin)
Paste this exactly:
net stop wuauserv
net stop bits
net stop cryptsvc
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start bits
net start cryptsvc
For Surface devices, the detachable keyboard relies on clean connector pins and firmware updates. If cleaning didn’t work, testing with another keyboard or checking for firmware/driver updates through Windows Update is recommended.
Go to Surface Support → Download drivers & firmware
Select your exact Surface Laptop model
Download the latest driver and Firmware compatible to your model.
Install → Restart
https://support.microsoft.com/en-us/surface
Shut down
Hold Volume Up + Power
Enter UEFI
If keyboard does NOT work in UEFI → likely hardware
If it works in UEFI → software/driver issue