@Override
	public void keyPressed(KeyEvent e) {
		switch (e.getKeyCode()) {
		case KeyEvent.VK_UP:
			break;
		case KeyEvent.VK_DOWN:
			playerSpriteType = Constants.SPRITE_DUCK;
			if(!player.isJumping()){
				player.setDucked(true);
			}
			break;
		case KeyEvent.VK_LEFT:
			player.moveLeft();
			player.setMovingLeft(true);
			break;
		case KeyEvent.VK_RIGHT:
			player.moveRight();
			player.setMovingRight(true);
			break;
		case KeyEvent.VK_SPACE:
			playerSpriteType = Constants.SPRITE_JUMP;
			player.jump();
			break;
		case KeyEvent.VK_CONTROL:
			if (player.isDucked() == false) {
				player.shoot();
			}
			break;
		}
	}