Can I do it so when I press a key some sample code gets run only once and I need to
press it again for it to run again.
Because "isKeyDown" detects it always and runs the code multiple times.
Check out my sick code:
@greenfoot you might want to fix your captchas to signup. Took me 3 days to sign up.
if(a.size() > 0 && Greenfoot.isKeyDown(a.get(0).Taste)) { getWorld().removeObject(a.get(0)); a.remove(0); }