public void keyPressed(KeyEvent e) {
		if (e.getKeyCode() == keyFullscreen) {
			if (gui != null) {
				if (gui.getFullscreen()) {
					gui.setFullscreen(false);
				} else {
					gui.setFullscreen(true);
				}
			}
		} else if (e.getKeyCode() == keyCameraZNeg) {
			// up
			if (e.getSource() == canvasGame || e.getSource() == canvasMain) {
				cameraMain.cameraZN = 1;
			}
		} else if (e.getKeyCode() == keyCameraZPos) {
			// down
			if (e.getSource() == canvasGame || e.getSource() == canvasMain) {
				cameraMain.cameraZP = 1;
			}
		} else if (e.getKeyCode() == keyCameraXNeg) {
			// left
			if (e.getSource() == canvasGame || e.getSource() == canvasMain) {
				cameraMain.cameraXN = 1;
			}
		} else if (e.getKeyCode() == keyCameraXPos) {
			// right
			if (e.getSource() == canvasGame || e.getSource() == canvasMain) {
				cameraMain.cameraXP = 1;
			}
		} else if (e.getKeyCode() == keyModeSwitch) {
			if (generalDestruction.getMode() == GeneralDestruction.MODE_GAME) {
				try {
					generalDestruction.setMode(GeneralDestruction.MODE_EDITOR);
				} catch (ParserConfigurationException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (TransformerException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (IOException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (SAXException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
			} else if (generalDestruction.getMode() == GeneralDestruction.MODE_EDITOR) {
				try {
					generalDestruction.setMode(GeneralDestruction.MODE_GAME);
					canvasGame.repaint();
				} catch (ParserConfigurationException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (TransformerException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (IOException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (SAXException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
			}
		}
	}