Implement cob_next_key