public void keyPressed(int k){
		if (k == KeyEvent.VK_S){
			bgm.stop();
			
			player.setDirectionsFalse();
			gsm.setState(GameStateManager.SAVESTATE);
		}
		if (k == KeyEvent.VK_M){
			Globals.setGameMuted(!Globals.getGameMuted());
			if (!Globals.getGameMuted()){
				bgm.loop();
			}
			else{
				bgm.stop();
			}
		}
		if (k == KeyEvent.VK_B){
			bgm.stop();
			Effect.MENU_BACK.play();
			gsm.setState(GameStateManager.MENUSTATE);
		}
		if (k == KeyEvent.VK_LEFT) {player.setLeft(true);}
		if (k == KeyEvent.VK_RIGHT) {player.setRight(true);}
		if (k == KeyEvent.VK_UP) {player.setUp(true);}
		if (k == KeyEvent.VK_DOWN) {player.setDown(true);}
	}