If I have code somewhere that has something to do similar to Greenfoot.isKeyDown("5"), it becomes unwanted when this code is not reached for arbitrary reasons and when it is reached again and it returns true when it only does so because during the period of time the code is not reached the key is pressed but now is not pressed.
So I have to do something like the following at the end of somewhere to clear up everything
for (int i = 0; i < 10; i++)
if (Greenfoot.isKeyDown(i + ""))
{}
But there are many other keys other than numbers and letters that can be traversed easily like the above loop. It would be nice if there was a method to dump all the states for this method. (Or for it to recognize it can clear it all after the current step)