Implement key iterator.