parse keys