public void toggle(int k){
		switch(k){
		case KeyEvent.VK_SPACE:
			isLightOn = !isLightOn;
			break;
		case KeyEvent.VK_M:
			showPicture = !showPicture;
			break;
		case KeyEvent.VK_L:
			isLinesOn = !isLinesOn;
			break;
		case KeyEvent.VK_C:
			isCursorOn = !isCursorOn;
			break;
		}
		
	}