I'm doing the spaceship game and I want to have a key to switch between control schemes. However the problem is that if I use .isKeyDown, I'd have to keep that key pressed the entire time. Is there a way to make it a single press only?
public void act() { if(Greenfoot.isKeyDown("1")) { processKeys(); trackMouse(); } if(Greenfoot.isKeyDown("2")) { processKeysAlt(); } }