public void processEvent(AWTEvent e) {
		switch (e.getID()) {
		case WindowEvent.WINDOW_CLOSING:
			System.exit(0);
		case MouseEvent.MOUSE_RELEASED:
			mouseReleased();
			break;
		case MouseEvent.MOUSE_PRESSED:
			mouseButton = ((MouseEvent) e).getButton();
			mousePressed();
		case MouseEvent.MOUSE_MOVED:
		case MouseEvent.MOUSE_DRAGGED:
			mouse.width = ((MouseEvent) e).getX();
			mouse.height = ((MouseEvent) e).getY();
			break;
		case KeyEvent.KEY_PRESSED:
			keys[((KeyEvent) e).getKeyCode()] = e.getID() == KeyEvent.KEY_PRESSED;
			parent.interaction.keyPressed(keys,(KeyEvent) e);
			break;
		case KeyEvent.KEY_RELEASED:
			keys[((KeyEvent) e).getKeyCode()] = e.getID() == KeyEvent.KEY_PRESSED;
			parent.interaction.keyReleased(keys,((KeyEvent) e));
			break;
		}
	}