protected void setKey(String type,String key){
		if(type.equals("LEFT")){
			mainWindow.config.setLeft(ActiveKeys.LEFT);
			editKey(tfLeft,key,borderBlack);
		}
		else if(type.equals("RIGHT")){
			mainWindow.config.setRight(ActiveKeys.RIGHT);
			editKey(tfRight,key,borderBlack);
		}
		else if(type.equals("UP")){
			mainWindow.config.setUp(ActiveKeys.UP);
			editKey(tfUp,key,borderBlack);
		}
		else if(type.equals("DOWN")){
			mainWindow.config.setDown(ActiveKeys.DOWN);
			editKey(tfDown,key,borderBlack);
		}
		else if(type.equals("PROTECT")){
			mainWindow.config.setProtect(ActiveKeys.PROTECT);
			editKey(tfProtect,key,borderBlack);
		}
		else if(type.equals("SHOOT")){
			mainWindow.config.setShoot(ActiveKeys.SHOOT);
			editKey(tfShoot,key,borderBlack);
		}
	}