Best way would be to use other language keymap, or customize keymap if you did want to move Z/Y on DE for example. The legends on the keycaps do not control what the keyboard does, the language keyboard map file in the OS does that where it assigns a charachter to the scancode the keyboard sends. So I can plug in FR azerty board and type US qwerty on it as the OS has no idea what is on the keyboard.