@Override
	public void keyPressed(Iterator<Integer> iterator) {

		if (!display3D)
			return;

		while (iterator.hasNext()) {

			int key = iterator.next();

			if (key == KeyEvent.VK_A) {
				camera.moveLeft();
			}

			if (key == KeyEvent.VK_D) {
				camera.moveRight();
			}

			if (key == KeyEvent.VK_W) {
				camera.moveForward();
			}

			if (key == KeyEvent.VK_S) {
				camera.moveBackward();
			}

			if (key == KeyEvent.VK_Q) {
				camera.turnLeft();
			}

			if (key == KeyEvent.VK_E) {
				camera.turnRight();
			}

			if (key == KeyEvent.VK_R) {
				camera.moveUp();
			}

			if (key == KeyEvent.VK_F) {
				camera.moveDown();
			}

			if (key == KeyEvent.VK_H) {
				camera.reset();
			}
		}

		GUIFunctions.refresh();
	}