I tried it again on my laptop later, and the problem was still there. It might happen on certain kinds of keyboards, which would be a much bigger problem than just my desktop :C
My guess is that it's because I'm using a Korean keyboard, which supports both Korean and English input. So it could happen on any keyboard layout that isn't English-only.