You can turn on Bluetooth on your Windows 10 computer's settings, and use it to wirelessly connect headphones, speakers, ...
You can connect a Magic Keyboard to your Mac through Bluetooth or using the Lightning port and charging cable.