I had to connect to a remote desktop on a server in Germany. The funny thing is that some keys are not mapped correctly. It turned out the default keyboard is German. Switching to US keyboard solved the problem.

Here is how:

Open the regional and language options from control panel

Click text services key settings button to find out how to switch between keyboards. By default, left Alt+shift will do.