It should be possible to have key bindings use "physical keys" (not sure if this terminology is universal, this is what Godot calls it). 'Physical z' would correspond to the 'y' key on a German keyboard layout, and the 'z' key on an English keyboard layout, since they are the same physical key.