Hi Mina,
Thanks for reaching out! I understand how frustrating it can be when your Surface Pro Keyboard intermittently fails to connect during startup.
Here are a few steps that have helped others resolve this issue
Run the Surface Diagnostic Toolkit
Download and run the Surface Diagnostic Toolkit to automatically check for hardware and software issues.
Check Keyboard Functionality in UEFI
Restart your Surface and enter UEFI by holding Volume Up + Power until the UEFI screen appears.
If the keyboard works in UEFI, it's functioning correctly, and the issue is likely with Windows or drivers.
Update Firmware and Drivers
Visit the Surface Firmware and Drivers page, select your Surface Pro 11 model, and install the latest .msi package.
Check for Windows Updates
Go to Settings > Windows Update and ensure your system is fully updated. Some users have reported improvements after cumulative updates.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment” I’m here to assist!
Best,
Carl