How to Configure Hotkeys for a Cabinet Without a Keyboard

Cabinet hotkey configuration lets a keyboardless arcade panel quit, pause and save states through simple button chords in RetroArch and standalone MAME.
A cabinet with no keyboard has no Escape, no Tab, and no F1, so every menu, savestate and exit has to come from the buttons already on the control panel. I run a two-player panel with a USB keyboard encoder and no permanent keyboard, and the fix is one button acting as a hotkey modifier, chorded with the player buttons. Bind the combos, save the config, then verify each one before you unplug the setup keyboard. Test with a personal backup of a game you already own; if the platform needs a BIOS image, use one dumped from hardware you own, and keep the machine offline throughout.
Pick the actions and the chord buttons
Decide what the cabinet must do without a keyboard: exit to the frontend, open the menu, pause, save a state, load a state, and reset. Choose one button as the modifier. On a JAMMA-style panel the clean choice is a spare admin button under the control panel lip, because Coin and Start are already claimed by games and using them as a chord fires a coin or a start in play.
| Action | Suggested chord | Where it is bound |
|---|---|---|
| Open menu | Hotkey + Player 1 Start | RetroArch Hotkeys / MAME UI Menu |
| Exit to frontend | Hotkey + Player 2 Start | input_exit_emulator / MAME UI Quit |
| Save state | Hotkey + Player 1 Button 1 | input_save_state / UI Save State |
| Load state | Hotkey + Player 1 Button 2 | input_load_state / UI Load State |
| Pause | Hotkey + Player 2 Button 1 | input_pause_toggle / UI Pause |
Pick buttons games rarely press, and write the map on a label inside the coin door.
Order of work
- With a keyboard attached, identify what the OS sees: evtest on Linux prints every event and its code, while Windows joy.cpl lists gamepad devices and a keyboard encoder appears separately as a HID keyboard.
- Note which button is the modifier and confirm it reports a distinct code.
- Bind that button as Hotkey Enable in RetroArch or as the menu input in MAME.
- Bind each action to its chord partner, one at a time.
- Save the configuration so it survives a reboot.
- Launch a personal backup you own and test every chord.
- Confirm the state files appeared before removing the keyboard.
RetroArch: the Hotkey Enable button
Open Settings, then Input, then Hotkeys. Bind the first entry, Hotkey Enable, to your admin button. Every other entry now means hold that button plus its partner: set Quit RetroArch (input_exit_emulator in retroarch.cfg) to Player 2 Start, input_save_state to Player 1 Button 1, and input_load_state to Player 1 Button 2. Bind input_menu_toggle so a chord opens the Quick Menu, where Save State, Load State, Resume and Close Content live. Use Quit RetroArch rather than only Close Content if one combo should leave the emulator and return to the frontend. RetroArch does not keep these edits by default: go to Main Menu, then Configuration File, then Save Current Configuration, or enable Save Configuration On Exit. The result goes into retroarch.cfg. If an autoconfig profile in the autoconfig folder keeps overwriting your binds, turn off input_autodetect_enable. That is the usual reason a working setup forgets itself overnight.
Standalone MAME: UI input assignments
Launch MAME with a keyboard attached and press Tab to open the menu. Go to Input Settings, then Input Assignments, then the User Interface group, which holds entries such as UI Menu, UI Pause, UI Save State, UI Load State and UI Quit. Select one, press Enter, press the cab button, and MAME records it; Escape clears an assignment. Run mame -cc once to generate mame.ini, and note that per-game input maps are .cfg files under the cfg folder while states live in the sta folder. There is a real trade-off: MAME records one control per UI input, so a chorded hotkey is awkward, and the practical route is one dedicated UI Menu button plus joystick navigation, or a frontend that provides chords. If your panel uses a programmable keyboard encoder, the cleaner fix is to program one admin button at the encoder level to emit Tab or F1 through the encoder’s configuration utility, then let MAME see an ordinary menu key.
Configuration files you will touch
- mame.ini, the main MAME config, created by mame -cc.
- cfg files under the cfg folder, per-game input assignments.
- retroarch.cfg, the single file holding RetroArch hotkey binds.
- .state savestates, written into the configured state directory.
- The autoconfig .cfg profiles that may override your binds.
Check timestamps after a test, because a combo that appears to work but writes nothing was never saved.
Failure modes and how to spot them
- No Hotkey Enable bound, so chords register as ordinary game inputs and the character jumps instead of pausing.
- The chord button is also a game input, giving input bleed: the save happens but so does a shot.
- Two actions share one button, so the emulator picks one arbitrarily.
- Quit RetroArch is confused with Close Content, leaving you at the Quick Menu.
- The state folder is read-only, so no .state file appears.
- An autoconfig profile or an unsaved config resets the binds after a reboot.
- The frontend reserves the same key, so the emulator never sees it.
Rebind the enable button, move the chord to a button the game ignores, and give each action a unique partner.
Verify before you remove the keyboard
With the setup keyboard still connected, launch a personal backup you own and run every chord once. Hold the modifier, press the partner, and watch for the expected result: the Quick Menu opens, the emulator exits to the frontend, a savestate writes and reloads at the same point. Confirm the .state file exists with a fresh timestamp, then quit and relaunch to prove the config persisted. Only then unplug the keyboard, boot cold, and repeat the whole sequence with no keyboard near the cabinet. If a chord fails cold, the config was never saved.
I label the chord map inside the coin door and keep a short USB keyboard in the cabinet for the first week. When a button starts doing two jobs at once, that spare keyboard is the fastest way back into the menu.
Related reading
If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:
