Added next keys iterator for LM interface