public void keyPressed(KeyEvent e){
		int key = e.getKeyCode();
		
		if(Board.tank1locked == false){
		if(key == KeyEvent.VK_UP) 
			if(theta > -1.57)
				thetadif= -0.01;
			else
				thetadif = 0;
		if(key == KeyEvent.VK_DOWN)
			if(theta < 0)
				thetadif= +0.01;
			else
				thetadif = 0;
		}
		else{
			if(key == KeyEvent.VK_UP) 
				if(theta < -1.57)
					thetadif= 0.01;
				else
					thetadif = 0;
			if(key == KeyEvent.VK_DOWN)
				if(theta > -3.14)
					thetadif= -0.01;
				else
					thetadif = 0;
		}
	}