Windows has no control over the function keys on your keyboard, because the actions associated to those keys vary from laptop to laptop, it is the laptop manufacturer that provides the method to control th function keys.
1
Try pressing Fn + Esc to toggle the function lock on your keyboard.
2
If that roes not resolve the problem, boot your laptop into BIOS.
Search in BIOS for a setting to toggle between Function keys and Action/Media Keys.
3
If that does not resolve the problem, what is the make (Dell, Asus, Lenovo... etc.) of your laptop.