function getKeyPath(node) {
  if (!node.parent) {
    return ['root'];
  }

  return [(node.data && node.data.name) || node.name].concat(
    getKeyPath(node.parent)
  );
}
Recursively work backwards from highlighted node to find path of valud nodes
@param {Object} node - the current node being considered
@returns {Array} an array of strings describing the key route to the current node