In the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Create a new DWORD value IgnoreRemoteKeyboardLayout and give it the value 1.
That should be sufficient to solve your problem.
--If the reply is helpful, please Upvote and Accept as answer--