I want to pause the run action using the space key on the keyboard, but I don't know the syntax used to stop, and I want to resume the action that had been paused using the enter key on the keyboard?
public void pause(){
if (Greenfoot.isKeyDown("Space"))
{
???
}
}
public void resume(){
if (Greenfoot.isKeyDown("Enter"))
{
???
}
}
}