public void keyPressed(KeyEvent e) {

			// if we're waiting for an "any key" typed then we don't
			// want to do anything with just a "press"
			if (waitingForKeyPress) {
				return;
			}

			if (e.getKeyCode() == KeyEvent.VK_LEFT) {
				// System.out.println("left pressed");
				leftPressed = true;
				canon.moveLeft();
				bullet.moveLeft();
			}
			if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
				// System.out.println("right pressed");
				rightPressed = true;
				canon.moveRight();
				bullet.moveRight();
			}
			if (e.getKeyCode() == KeyEvent.VK_SPACE) {
				// System.out.println("fire pressed");
				firePressed = true;

			}
		}