public final String UP = "up";
public final String DOWN = "down";
public final String LEFT = "left";
public final String RIGHT = "right";
private boolean keyPressed = false;
/**
* Act method
* /
public void act()
{
if(!keyPressed && Greenfoot.isKeyDown("right")) {
keyPressed = true;
move(1);
} I want my character too only move continuously when the right key is pressed and not move at the start of the game, but this code does not do anything when i press the right key
