Disconnect the keyboard.
Hold the Power button for about 20 seconds until the Surface shuts down completely.
Wait 30 seconds.
Turn it back on and reconnect the keyboard.
Perform a two-button shutdown
This resets embedded hardware without deleting your files.
Shut down the Surface.
Hold Volume Up + Power together for 15–20 seconds.
Release both buttons.
Wait 10 seconds.
Power the Surface back on.
Reattach the keyboard.
Download and install the latest Surface Pro 8 Drivers and Firmware MSI from Microsoft's website. Go to Microsoft's Download drivers and firmware for Surface page and get the package specific to Surface Pro 8.
Shut down.
Hold Volume Up.
Press Power.
Release Power but keep holding Volume Up.
Once in the UEFI screen, attach the keyboard.
If it works in UEFI, the issue is likely Windows or driver related.
If it still doesn't work, the problem is more likely hardware (keyboard or Surface connector).
Take isopropyl alcohol (90%+) on a lint-free cloth, gently on both the tablet's pins and the cover's contacts, let fully dry before reattaching.
Test another keyboard (if possible)-Another official Surface Pro 8/Pro X compatible keyboard works → your keyboard has likely failed.
Another keyboard also fails → the Surface connector or motherboard is likely at fault.