Keyboard layout changes in Office
The solution to this issue is to uncheck the "Automatically switch to a document's input source" checkbox in System Preferences -> Keyboard -> Input Sources.

If the keyboard layout is wrong then select the correct layout.