This also should applies to other keyboard that has this issue.
- Remove all paired device from both macOS and Windows.
- Factory reset the keyboard
fn1 + J + Z
- Boot into Windows and pair the keyboard
fn1 + Q
- Boot into macOS
- Factory reset the keyboard
fn1 + J + Z
- Pair the keyboard in macOS
fn1 + Q
- Once paired, run the following commad
sudo defaults read /private/var/root/Library/Preferences/com.apple.Bluetoothd.plist LinkKeys
. Enter your macOS login password when asked