Hello Mechelle,
Welcome to Microsoft Community.
I understand that you are experiencing problems connecting the Surface keyboard to the Surface Pro 8, if it is convenient, could you please clarify to us here which keyboard you are using?
Learn more about Surface Keyboards and Type Covers - Microsoft Support
Or you are using a Microsoft keyboard?
Different models of keyboard and the connection between the Surface is different, for example, the Surface Pro keyboard is directly connected to the Surface through the physical port, but the Microsoft Bluetooth keyboard is connected to the Surface with Bluetooth. If you can explain to us the type of keyboard you are using, and describe in detail what specific problems you have encountered, then we can troubleshoot the problem according to the information you provide.
Assuming you are using a Surface Pro keyboard, you can check this issue first by referring to the information in the following support links:
Troubleshoot Surface Type Cover or Keyboard - Microsoft Support
But I still hope you can add more information here.
Best Regards,
Mitchell | Microsoft Community Support Specialist