Get all keys from B-tree.