How would I go about doing that? So far my code is as shown below to make the player move, but when I hold the Space bar, speed does not increase.
if (Greenfoot.isKeyDown("SPACE")) {
move(10);
}
else {
move();
}

