Hi John Fearon
In addition to the suggestions already provided, you may also want to uninstall and reinstall the keyboard driver in Device Manager, then restart the Surface. Running the Surface Diagnostic Toolkit and ensuring the latest Surface firmware and driver updates are installed can also help identify or resolve keyboard-related issues.
If the problem occurs even in the UEFI environment, that would point more toward a hardware issue with the built-in keyboard.
Feel free to update here if anything comes up!