> For the complete documentation index, see [llms.txt](https://xavierarpa.gitbook.io/uniflux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xavierarpa.gitbook.io/uniflux/tutorials/how-to-use-a-custom-key.md).

# 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="https://3698069541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgBo0OlJe1wpeLvqCxkDG%2Fuploads%2FL9uJFQmeCnRmMmqPXLg0%2FCaptura%20de%20pantalla%202024-05-20%20a%20las%201.31.52.png?alt=media&amp;token=9976998d-ad7b-4ac4-8ee7-77fd9bb327be" 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="https://3698069541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgBo0OlJe1wpeLvqCxkDG%2Fuploads%2Fsl4Swnn3J2pLxX0MgJBa%2FCaptura%20de%20pantalla%202024-05-20%20a%20las%201.32.19.png?alt=media&amp;token=ec8cdfc3-d6fb-4a92-835e-1f9b8a33d025" 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*
