fix keyboard navigation for the tree (fix #404)