Isn't this what sticky keys does? https://support.apple.com/guide/mac-help/change-keyboard-set...