public void keyPressed(int code) {
		if (onMenuScreen)
			return;
		else {
			if (code >= 37 && code <= 40) { // ARROW KEYS
				int dn = code - 38;
				if (dn == -1)
					dn = 3;
				character.startMoving(directions[dn]);
			}
			if (code == 32) { // SPACEBAR
				if (jump > 0) {
					character.jump();
					jump--;
				}
			} else if (code == 27) { // "ESC"
				quitToMenu();
			}
		}
	}