> ## Documentation Index
> Fetch the complete documentation index at: https://docs.serververs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Controls & keyboard

> How controller buttons map to the PS5, and how to play PS5 Cloud with a keyboard and mouse using reWASD or Input Remapper.

## Controller buttons

| Your controller / on-screen button | On the PS5 |
| - | - |
| A · B · X · Y | ✕ · ○ · □ · △ |
| LB · RB | L1 · R1 |
| LT · RT | L2 · R2 |
| Left / right stick (press = L3 / R3) | Same |
| D-pad | D-pad |
| Start / Menu | Options |
| Back / View | Create |

PlayStation controllers work as they are. The touchpad isn't available, so use the game's menus instead (for example, open the GTA map from the pause menu).

## Play with keyboard and mouse

The PS5 understands controller buttons, so you turn your keyboard and mouse into a **virtual controller** on your computer with a small app. Set it up once, well before your slot (the app needs a PC restart). Moonlight then sends it to the PS5 like a normal controller.

> [tab] Windows (reWASD)
>
> > [!NOTE]
> >
> > Takes about 5 minutes. Do it the day before, or at least 30 minutes before your slot.
>
> ### Part 1: Install
>
> 1. Download and install [reWASD](https://www.rewasd.com) (7-day free trial).
> 2. When it shows **"Just one step left – Restart your PC"**, click **Restart the PC**. **This step is required:** without the restart reWASD shows everything as "ON" but your keys and mouse do nothing in the game.
>
> ### Part 2: Join keyboard + mouse into one device
>
> 1. Open reWASD. In the **bottom bar** you'll see your devices (keyboard, mouse…).
> 2. Click the **group** button (bottom right, next to the device name) → **Create a new group**.
> 3. Pick the keyboard you actually type on (on a laptop it's usually **Standard PS/2 Keyboard**) and your mouse (usually **HID-compliant mouse**), then save.
> 4. Click the new **keyboard + mouse** icon in the bottom bar. The bottom right should now show **"Keyboard + HID-compliant mouse"**.
>
> ### Part 3: Load a ready-made layout
>
> 1. Click **☰** (top left) → **Add game profile**, name it **PS5**.
> 2. Click **☰** → **Check Community configs**, search **Grand Theft Auto 5** (works well for most games).
> 3. Pick a config made for **Keyboard + Mouse** with a **Virtual Xbox 360** controller (we use the one by **Nmd113**) → **Use config** → add it to your **PS5** profile.
> 4. Open the **Mouse** tab and check: mouse movement → **right stick**, left click → **RT**, right click → **LT**. If you see a yellow note *"This sub-config won't work for the current device"*, go back to Part 2: your group isn't selected.
> 5. Click the **Xbox icon** at the top (output device) and make sure the virtual controller is **Xbox 360** (not "Xbox One Bluetooth").
> 6. Click **💾 Save**, then **Apply to Slot 1**. A popup says **"PS5: GTA V is active in Slot 1"**. You're done.
>
> ### Part 4: Play
>
> 1. **Turn off any real controller** (Xbox/PlayStation pad) first. Moonlight uses the first controller it finds, so a real pad would take over from reWASD.
> 2. Open Moonlight, connect as usual and **click inside the stream window**.
> 3. Mouse turns the camera, left click shoots, right click aims, WASD moves.
> 4. Too slow or fast? In reWASD click the **Xbox icon** → **Output Sticks** → **Right Stick** and adjust **Deflection** / **Initial speed**.
> 5. When you're done, click the **⏻ power** button (bottom left in reWASD) to turn the remap off, otherwise your mouse keeps acting like a joystick.
>
> Prefer to set your own keys? Skip Part 3 and map them yourself using the layout below.

> [tab] Linux (Input Remapper)
>
> 1. Install [Input Remapper](https://github.com/sezanzeb/input-remapper) (free).
> 2. Create a preset for your keyboard and mouse with the output set to **gamepad**.
> 3. Set the keys using the layout below, with mouse movement on the **right joystick**.
> 4. Apply the preset, then open Moonlight and connect as usual.

> [tab] Mac
>
> There is no simple keyboard-to-controller app for Mac yet. Please connect a PlayStation or Xbox controller (Bluetooth or USB), or play from your phone.

### Recommended layout (GTA and most games)

| Key / mouse | Controller button | In game |
| - | - | - |
| W A S D | Left stick | Move / steer |
| Mouse | Right stick | Look / aim |
| Left click | RT (R2) | Shoot / accelerate |
| Right click | LT (L2) | Aim / brake |
| Space | A (✕) | Jump |
| Left Shift | A (✕) hold | Sprint |
| F | Y (△) | Get in / out of vehicle |
| E | B (○) | Interact / back |
| R | X (□) | Reload |
| C | Right stick click (R3) | Crouch / look back |
| Left Ctrl | Left stick click (L3) | Stealth / horn |
| Q · Tab | LB · RB (L1 · R1) | Weapon wheel · cover |
| Arrow keys | D-pad | Phone / menus |
| Esc | Start (Options) | Pause / map |

> [!NOTE]
>
> Typing on your keyboard without this setup won't move anything in the game. That's normal.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.