public void keyPressed(){
	  if (key=='r'){
		  recording = true;
	  }else if (key=='='){
		  scaleFactor +=0.01;	
		  frame.setSize((int)(this.screenWidth*scaleFactor),(int)(this.screenHeight*scaleFactor)); //Re-size the window (not working, window slightly too small)
	  }else if (key=='-'){		  
		  scaleFactor -=0.01;
		  frame.setSize((int)(this.screenWidth*scaleFactor),(int)(this.screenHeight*scaleFactor));
		  if (scaleFactor <=0) scaleFactor = 0.01f; //Minimum zoom out level
	  }else if (key =='0'){
		  scaleFactor = 1;
	  }
  }