Dvorak-QWERTY keyboard does not properly switch between keyboards when I press Command button on Safari
Check Safari menu that you have the same picture as below.
If anything is different then you need to check System Preferences > Keyboard > Shortcuts to see if you have any other keys assigned to these menu items.