public void keyPressed(KeyEvent e) {

			int key = e.getKeyCode();
			if (end)
				return;
			int rsp = 1;
			if (!firstmove)
				firstmove = true;
			if (!heroRest) {
				heroRest = true;
				if (key == leftKey) {
					rsp = fram.gm.action("a");
				} else if (key == downKey) {
					rsp = fram.gm.action("s");
				} else if (key == rightKey) {
					rsp = fram.gm.action("d");
				} else if (key == upKey) {
					rsp = fram.gm.action("w");
				} else if (key == eagleKey) {
					rsp = fram.gm.action("f");
				}

				tryEnd();
			}
		}