@Override
	public void doTask()
	{
		Set<Direction> directions = new HashSet<Direction>();
		
		if(keyboard.isKeyPressed(upKey))
		{
			directions.add(TOP);
		}
		
		if(keyboard.isKeyPressed(downKey))
		{
			directions.add(BOTTOM);
		}
		
		if(keyboard.isKeyPressed(leftKey))
		{
			directions.add(LEFT);
		}
		
		if(keyboard.isKeyPressed(rightKey))
		{
			directions.add(RIGHT);
		}
		
		if(!directions.isEmpty())
		{
			move(directions);
		}
	}