Apple magic keyboard not working on Windows 10 PC
I have searched for 

https://magicutilities.net/magic-keyboard/download

whereby I have downloaded a copy of the keyboard and you have to install it. Then go to your Bluetooth settings and connect to the keyboard even if it does not respond to your pin. 

So


Go to this website and download the software for the keyboard and install it
Redo the Bluetooth connection
press the pin
even if it does not respond press connect


This has worked for me.