These other flags deprecated and KEY_META should be preferred. They remain some time, however, for compatibility:
KEY_DIR
Define that the key is a directory rather than a ordinary key. This means its executable bits in its mode are set. But even without this option the key can have subkeys. See keySetDir().