Visual Studio appears to randomly adopt American keyboard layout
I have tried the same thing, but it turned out to be because I was hitting Alt+Shift in certain programs, thus triggering the language switch in Windows. Could it be that you accidentally hit Alt+Shift or Ctrl+Shift (British layout) when coding?