@Override
		public void keyPressed(KeyEvent e) {
			int keycode = e.getKeyCode();
			
			try {
				good2.hero.getX();
				good2.keyPressed(e);
			} catch (Exception E) {
				//pass
			}
			
			//Key commands
			if (keycode == KeyEvent.VK_Q) {
				WindowFrame.exit();
			} if (keycode == KeyEvent.VK_R) {
				WindowFrame.replay(frame.doExit);
			} if (keycode == KeyEvent.VK_O) {
				WindowFrame.play();
			} if (keycode == KeyEvent.VK_ENTER) {
				if (gm == 1) {
					gm2();
				}
			}
				
			//fast forward
			if (keycode == KeyEvent.VK_F) {
				rate ++;
				for (int i = 0; i < 10; i++) {  //Update things a lot faster if the F key is pressed
					WindowFrame.window.paint(g);
				}
			} else {
				rate = 0;  //Set the rate back to 0 if it is not pressed
			}

		}