Seems like the client somehow begins to think you have the shift key pressed when you don't. This is why you sometimes can't get off your mount/draisine, and pressing D or F opens the quick switch menu. Managed to get into a PM when this happened and all my writing was coming out capitalized.
The fix is that it eventually corrects itself. I'm not sure how to replicate it. I'm using Chrome.