# 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](https://wiki.retrobat.org/navigation/view-options) 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](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FW8q8wzu0yW9Htt5h4zEA%2Fimage.png?alt=media\&token=a4ae3ad3-3a80-4c28-8b15-92a1b5a80da7), 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](https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FW8q8wzu0yW9Htt5h4zEA%2Fimage.png?alt=media\&token=a4ae3ad3-3a80-4c28-8b15-92a1b5a80da7) to access the [Game Options](https://wiki.retrobat.org/navigation/game-options) 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](https://wiki.retrobat.org/navigation/scraping-and-metadata).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>
