# Build a Key Remapping Menu

> For the complete documentation index, see [llms.txt](llms.txt).

Give the local player a Jump binding they can change, save, and reset. Start with the controller and a working Jump action from [First Steps](ipt-first-steps.html). This example uses the first key slot and UMG ViewModels.

Procedure: Make Jump available to the settings menu

1. Open Project Settings → Engine → Enhanced Input → User Settings. Enable User Settings. Set User Settings Class to `NinjaInputUserSettings` and Default Player Mappable Key Profile to `NinjaInputPlayerMappableKeyProfile`, or your subclasses.

2. In the active mapping context, select the Jump key mapping. Choose Override Settings and `NinjaInputPlayerMappableKeySettings`. Give the mapping a stable name such as Jump_Keyboard, a Display Name of Jump, and a Display Category of Movement. Choose the keyboard/mouse Input Filter. Use unique names for distinct bindings.

3. Keep notification of user settings enabled when registering the context. A mapping must be known to the local player's profile before the menu can list it.

![Player-mappable name, category, and input filter for a binding](Documentation/ipt_remapping_mappable_key_settings.png)

Procedure: Build the menu from the row up

1. In a row Widget Blueprint, add Key Mapping Entry ViewModel with creation type Manual. Bind the label to DisplayName and the displayed key to CurrentKey. Use a key selector and send the selected key to Rebind Key to First Slot. Wire a Reset button to Reset Key Binding.

2. Create a category widget with a manual Key Mapping Category ViewModel. Use DisplayCategory for the heading. Pass each item in Get Bindings to a row as its manual ViewModel. Use Get Gamepad Bindings or Get Keyboard And Mouse Bindings for separate device tabs.

3. In the menu widget, add Key Mappings ViewModel with creation type Resolver and choose Input Resolver. Bind GetCategories to the category list and pass each category ViewModel to its widget. With a ViewModel extension on a panel, bind the collection to Set Items.

4. Create the menu for the local Player Controller and show it. Wire Apply to Save Input Settings on its root ViewModel. Use Is Saving Settings to disable Apply while a save is in progress.

![Input Resolver selected for the root Key Mappings ViewModel](Documentation/ipt_remapping_mvvm_resolver_init.png)

## Customize the Rebind

For a second slot or a custom key picker, call `RebindKey` with `FMapPlayerKeyArgs` containing the mapping name, new key, and slot. The supplied reset helper restores the first slot. To report a rejected mapping yourself, call `RemapKey` on the manager and check its result. Version 6.1.20 also returns the failure reasons. To show button icons, configure platform controller data in Common UI and bind Icon Brush on the entry.

## Try It in Play

Change Jump to a spare key, apply, close the menu, and jump with the new key. Start another session with the same local profile and check the binding. Reset it, save, and test the original key. If the menu is empty, check that the context was registered with user settings and that the root widget has the owning player.

