Does this happen in notepad, too, or just Word? Are you using any sort of keyboard switching tool (xneur, scim, etc.)? If you are, disable it and try again.