# How to use a custom Key?

In this example I will show the most likely use for the custom key, creating your own enumerator and implementing it to the UniFlux system

We create the 'Key' enumerator to use it

```csharp
public enum Key
{
    Event_1,
    ResetApp,
    OnPlayerDead
}
```

We go to the Generator Key tab

<figure><img src="/files/LL3PTIK1KybxAjmYfXAJ" alt=""><figcaption></figcaption></figure>

We write the name of the type we are going to use, in this case "Key". Note that it is Key Sensitive.

<figure><img src="/files/p3Tt7QjpaNtzx9dfWhYF" alt=""><figcaption></figcaption></figure>

We choose the folder where we left the new Extender code and that's it!

```csharp
Key.Event_1.Dispatch();
Key.ResetApp.Dispatch();
Key.OnPlayerDead.Dispatch();
```

Now you can use the "Key" enum to create new keys!

On a personal note, I usually use strings to reduce dependencies completely, by using a custom key that is not primitive you will generate a dependency, if that does not affect your project then go ahead, *without fear of success*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xavierarpa.gitbook.io/uniflux/tutorials/how-to-use-a-custom-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
