clean keytree