It sure sounds very strange if it also only happens during playing M2TW If it continues and are still very frustrating (which I understands it is hehe) then replacing it with a new keyboard might be the only solution I think.

Hehe it's my own keyboard which needs a wash, it's full of hair, food and other digusting things