How to change skybox when button pressed

I would like it so when you press a button the skybox changes, I can get it to change but not to change back, here is the script

var sunny : Material;
var stars : Material; 

function Update () {
if(Input.GetKeyDown(“q”)){

	if(light.enabled == true)
		light.enabled = false;
		else
		
		light.enabled = true;
		RenderSettings.skybox = stars;
		
		}
	}

add some bools.

if(day){ // if it is currently day, change to night
day= false;
night= true;
RenderSettings.skybox = stars;
}

else if(night){ // if it is currently night, change to day
night= false;
day= true;
RenderSettings.skybox = sunny;
}