[library] Implement keyboard navigation