public void keyPressed(KeyEvent e) {
		int key = e.getKeyCode();
		if (key == KeyEvent.VK_F1) {
			if (Main.debug == false) {
				Main.debug = true;
			} else {
				Main.debug = false;
			}
		}
		if (key == KeyEvent.VK_W) {
			up = true;
		}
		if (key == KeyEvent.VK_A) {
			left = true;
		}
		if (key == KeyEvent.VK_S) {
			down = true;
		}
		if (key == KeyEvent.VK_D) {
			right = true;
		}
		if (key == KeyEvent.VK_SPACE) {
			space = true;
		}
		if (key == KeyEvent.VK_M) {
			if(m){
				m=false;
			}else{
				m=true;
			}
		}
	}