public void setMove(char c) {
		switch (c){
		case 'r':	// right
			moveX = speed;
			if (crawl)
				moveX /= 2;
			play();
			break;
		case 'l':	// left
			moveX = -speed;
			if (crawl)
				moveX /= 2;
			play();
			break;
		case 's':	// stand
			moveX = 0;
			stop();
			break;
		case 'j':	// jump
			if (!inAir)	// jump only if the character is not previously jumping
				jump = 1;
			break;
		default:
			moveX = 0;
			stop();
			break;
		}
	}