> For the complete documentation index, see [llms.txt](https://docs.mosotoscripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mosotoscripts.com/getting-started/register-key-mapping.md).

# Register Key Mapping

***

## What is Key Mapping?

We have chosen to use the FiveM native **RegisterKeyMapping**, as it removes the need for constant while-loop checks for keypresses every frame. This results in a more optimized and performance-friendly resource.

This native works by triggering a registered chat command whenever the assigned keybind is pressed. It also allows each player to customize their own key bindings directly in-game.

To adjust your keybinds, go to **GTA V Settings > Key Bindings > FiveM**.

## How to Unbind Keys?

* `unbind keyboard` [input](https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/) in F8 console.
* Search for **%appdata%** in your Windows search bar and open it.
  * Go to CitizenFX -> fivem.cfg
    * Remove the lines you want
      * Restart FiveM

**Note:** There is no way to mass unbind keys for all of your server's players.
