If you placed your detachable keyboard inside the box when sending the Surface Pro 8 for service, then Microsoft is required to return it.
Open a “Missing Item After Service” case with Microsoft.
Visit support.microsoft.com/devices → check service order → confirm if keyboard as received → contact support via chat and report a missing accessory.