@Override
	public void keyPressed(KeyEvent e) {
		switch (e.getKeyCode()) {
		case KeyEvent.VK_UP:
			currentSprite = characterJumped;
			robot.jump();
			break;
		case KeyEvent.VK_DOWN:
			currentSprite = characterDown;
			robot.setDucking(true);
			break;
		case KeyEvent.VK_LEFT:
			robot.moveLeft();
			robot.setMovingLeft(true);
			break;
		case KeyEvent.VK_RIGHT:
			robot.moveRight();
			robot.setMovingRight(true);
			break;

		case KeyEvent.VK_CONTROL:
			if (robot.isDucking() == false){
				robot.shoot();
				robot.setReadyToFire(false);
			}
			break;

		}

	}