@Override
	public void keyPressed() {
		if(parent.key == parent.CODED) {
			if(parent.keyCode == parent.CONTROL) {
				DrawMenu menu = new DrawMenu(parent, "ballgame.DrawMenu", new PVector(parent.mouseX, parent.mouseY));
			}
		}
		switch(parent.key) {
			case 'f':
				ForceObject force = new ForceObject(parent, "ballgame.ForceObject#" + ForceObject.getNumber(), new PVector(parent.mouseX, parent.mouseY), 0, 0);
				break;

			case 'p':
				Portals portals = new Portals(parent, "ballgame.Portals#" + Portals.getNumber(), new PVector(parent.mouseX, parent.mouseY));
				break;

			case 'b':
				GameBall ball = new GameBall(parent, "ballgame.GameBall#" + GameBall.getNumber(), new PVector(parent.mouseX, parent.mouseY), new PVector(0, 0));
				break;

			case 's':
				Scatterer scatterer = new Scatterer(parent, "ballgame.Scatterer#" + Scatterer.getNumber(), new PVector(parent.mouseX, parent.mouseY));
				break;

			case 'd':
				DrawMenu menu = new DrawMenu(parent, "ballgame.DrawMenu", new PVector(parent.mouseX, parent.mouseY));
				break;

			case 'q':
				ElementFactory.spawnElement();
				break;

			case 'w':
				Walls walls = new Walls(parent, "ballgame.Walls#" + Walls.getNumber(), new PVector(parent.mouseX, parent.mouseY));
				walls.addNode(new PVector(parent.mouseX, parent.mouseY));
				break;
		}
	}