Its a Kinda weird Situation, I'm trying to set up a ship to be controlled key board. Everything seems to be working nicely except for the move up Key. I would Ideally Like to have the object/actor to rotate and face in the give direction like the other commands do  however, when testing the first command on the line, it moves in the correct direction but doesn't face the direction.   I also made a line of code were it as a "else" to have a pre_set facing location when not issuing commands durring run time. I would indefinitely like to know what i am doing wrong. Also note that I have attempted to (setLocation for 270 & -90) and both at the same time however the only results were a boost in a set speed..... lines of code below.
{
        if (Greenfoot.isKeyDown("w"))
        {
            setRotation(270);
            move(1);
        }
        else
        { 
            setRotation(0);
            move(0);
        }
        if (Greenfoot.isKeyDown("s"))
        {
            setRotation(90);
            move(1);
        }
        else
        { 
            setRotation(0);
            move(0);
        }if (Greenfoot.isKeyDown("d"))
        {
            setRotation(0);
            move(1);
        }if (Greenfoot.isKeyDown("a"))
        {
            setRotation(180);
            move(1);
        }
        if ("space".equals(Greenfoot.getKey()))
        {
            fire();
        }
    }
    /**
     * *fire the the Lemons
     */
    private void fire()
    {
        Lemons_of_War lemons_of_war = new Lemons_of_War();
        getWorld().addObject(lemons_of_war, getX(), getY());
        lemons_of_war.setRotation(getRotation());
    }
}
   
   
             
          
        

