public void dispatchKey(char key, KeyEvent e)
	{
		if(key == ' ') {//SPACEBAR --> TOGGLE SIMULATE
			simulate = !simulate;
		}
		else if (key == 'r') {//RESET  USE ONLY IF YOU DONT CARE ABOUT THE FINAL DATA
			System.out.println("RESET!");
			frameExporter = null;
			fs.reset();
			rb = null;
			shapeCounter += 1;
			path.clear();
		}
//		else if (key == 'd'){
//			density += 1;
//			if(rb != null) rb.density = density; 
//			System.out.println("DENSITY CHANGED: " + density);
//		}
//		else if (key == 'D'){
//			density -= 1;
//			if(rb != null) rb.density = density; 
//			System.out.println("DENSITY CHANGED: " + density);
//		}
		else if (key == 'v') {// velocity field display
			veldisplay = !veldisplay;
			if (veldisplay){
				System.out.println("VELOCITY FIELD ON");
			}
			else {
				System.out.println("VELOCITY FIELD OFF");
			}
			forcedisplay = false;
		}
		else if (key == 'f') {// force field display
			forcedisplay = !forcedisplay;
			if (forcedisplay){
				System.out.println("FORCE FIELD ON");
			}
			else{
				System.out.println("FORCE FIELD OFF");
			}
			veldisplay = false;
		}
		else if (key == 'e') {//toggle exporter
			frameExporter = ((frameExporter==null) ? (new FrameExporter()) : null);
			System.out.println("'e' : frameExporter = "+frameExporter);
		}
	}