Styling and collapsing of key tree.