public KeyPath key(String name) {
		String[] keys = Arrays.copyOf(this.keys, this.keys.length + 1);
		keys[this.keys.length] = name;
		return new KeyPath(keys);
	}
Create a new path by appending the given key

<p>
For example, if this path is "{@code Processes[2]}" and {@code name} takes the value
"{@code Threads}", the result will be "{@code Processes[2].Threads}".

@param name the new final key
@return the resulting path
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/path/KeyPath.java