KeyDown more than one frame

Monkey Targets Forums/Flash/KeyDown more than one frame

Zwer99(Posted 2013) [#1]
Hey there!

I have the following problem: If I press the right arrow key the player should move to the right. That's working, but approximately each 5 seconds the player moves to the right even if I've released the key. KeyDown(KEY_RIGHT) still returns 1 - I checked that.
That's so strange because in HTML 5 it doesn't happen and in Flash Debug-Mode it occures more often than in Release-Mode.

I have no idea how I could fix that problem...

Thanks!

EDIT: I just realized that in Chrome everything runs fine! In IE 10 (exactly 10.0.9200.16484) there are the problems...

EDIT 2: Now I tried Firefox and Opera. It seems that Firefox also has Troubles with KeyDown(). Opera works fine! Maybe it has something to do with the Speed of the game. The strange thing is, that KeyDown() is always pressed for the same loop count.
So, if the problem occures, the object always moves the same distance, whether the game runs fast or slow. Just the frequency with which the problem happens depends on the speed of the game

I'm using Windows 8, Monkey v66b and the latest versions of the browsers