A thought that I had was that rather than do my usual for pressing keys:
I could just keep a List of keys pressed. Can "List" only contain Objects, or can it contain Strings?
If it can't contain Strings, is this idea logical using an array? Also, if this idea is more trouble than just keeping a variable for each key I need to track (not many now, just more for future reference)?
if(shotButtonReleased && Greenfoot.isKeyDown("space")) { //some action spaceReleased = false; } if(!Greenfoot.isKeyDown("space")) { spaceReleased = true; }