The right command option keys act like the alt gr key on windows keyboards.
Magic keyboard windows function keys.
The various models such as the magic keyboard.
Click on the apple icon in the top left corner of your screen and then click on system preferences.
On the following screen ensure that you do not have a check mark in the box that says use f1 f2 etc.
Is the menu or applications key on windows that allows you to launch.
To turn fn key lock off repeat the process you followed to turn it on.
Press the right command and or right option key with actual key.
If a user account control dialog appears click yes.
Use function keys on a mac keyboard in windows with boot camp.
In order to type the additional third character symbol on some keys follow these steps.
F1 opens help in an app or f12 opens the web console in your browser.
Select or deselect use all f1 f2 etc.
Within system preferences click on keyboard.
Install and activate the belonging magic keyboard layout for your language.
If your fn keys by default controlled media e g volume playback etc turning on the fn key lock will make it so that the fn keys now execute the secondary function that f1 f12 do e g.
Quick video on how to use an apple keyboard on windows 10 and still use the apple volume function keys.