keytree to keynode