No there's not, but it's possible that through some sequence of events the window thinks that some key is held down that's not, like Ctrl for example. That does reset when you switch windows, so this seems like a possibility in your case. Try tapping ctrl, alt, and shift if it happens again, and see if it starts to work after that