# Pad2Key

The Pad2Key functionality enables the creation of a "per-game" controller to keyboard keys mapping, this is mostly used for old computers and old Windows games that are not compatible with a Gamepad.

You can create a pad2key profile for a system or for a specific game.

### Create a pad2key profile for a system

From the Game View press SELECT to open the [View Options](/navigation/view-options.md) menu and select **ADVANCED SYSTEM OPTIONS.**

<div align="left"><figure><img src="https://i.imgur.com/jR79O63.png" alt=""><figcaption></figcaption></figure></div>

Select **EDIT PADTOKEY PROFILE.**

<div align="left"><figure><img src="https://i.imgur.com/8QE8iwu.png" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://i.imgur.com/rJ2TCWP.png" alt=""><figcaption></figcaption></figure></div>

Select the keys from your controller to assign to a keyboard button and press ![A](/files/oQmMDvGLPCQJiXNlol7Z), a virtual keyboard will appear.&#x20;

Select the keyboard key to affect to the pad button and repeat for all required buttons

<div align="left"><figure><img src="https://i.imgur.com/vElSeT7.png" alt=""><figcaption></figcaption></figure></div>

Once done, **SAVE.**

### Create a pad2key profile for a **game**

From the Game View long-press ![A](/files/oQmMDvGLPCQJiXNlol7Z) to access the [Game Options](/navigation/game-options.md) menu and select **CREATE PADTOKEY PROFILE.**

<div align="left"><figure><img src="https://i.imgur.com/8BJeFtb.png" alt=""><figcaption></figcaption></figure></div>

### Get Pad2Key profiles from external sources

Pad2keys profiles files can be [scraped from screenscraper](/navigation/scraping-and-metadata.md).fr if the option is enabled.

<div align="left"><figure><img src="https://i.imgur.com/zEIRW6F.png" alt=""><figcaption></figcaption></figure></div>

### Pad2Key file

The Pad2Key file is located near the game rom and has the same name as the game ROM with a .keys extension.

<div align="left"><figure><img src="https://i.imgur.com/DLV9BVR.png" alt=""><figcaption></figcaption></figure></div>

Here is an example of a .keys file content

<div align="left"><figure><img src="https://i.imgur.com/DQURWtB.png" alt=""><figcaption></figcaption></figure></div>


---

# 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://wiki.retrobat.org/controllers/pad2key.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.
