Get all keys from B-tree into a list.