Add more comments
Remove unnecessary test

After testing I determined only ENOTDIR is needed to detect keys.