public void setKey(char key) {
		if (selectedPath != null && !editingCollection) {

			System.out.println(key + " = " + selectedPath);

			newCollection.set((int) key, selectedPath);
		} else {
			System.out.println("Setting key to a file in "
					+ selectedCollection.getCollectionName());
			selectedCollection.changeKey(selectedKey, (int) key, selectedPath);
		}

		isSettingKey = false;
	}