Attack Keybind Changes After Porting

Device Type: PC
Device Operating System: Windows 11

Went to options, under Keyboard and changed the Attack keybind to “Z”. Used a port to go somewhere else, and it changed itself to “Space”.

Happens everytime I port somewhere.