Windows is notorious for having Bluetooth connection issues, but you can do something about them.
Use the solutions explained in this article if your Bluetooth keyboard is paired but not working on your Windows 11/10 PC. Disconnect and reconnect the Bluetooth Adapter Run Bluetooth Troubleshooter ...