Implement keyboard navigation for tree