On-screen keyboard-to-controller button map for fighting games, for goldfish who can't remember which key is Heavy Slash. Stays on top of your (borderless/windowed) game and shows:
- the key you just pressed and what it maps to, plus a strip of your recent inputs
- chords (
A A= dash), combinations (holdS, pressK=2H) and macros - a cheat sheet of the whole keymap, with held keys lit up
Name: Potemkin (Guilty Gear) + keys. Formerly "FGfGwK: Fighting Games for Goldfish with Keyboards".
All builds: https://github.com/HenryFBP/potemkeys/releases
- Run it. Pick a keymap by pressing its number/letter.
- Play your game in borderless or windowed mode. The window stays on top.
F1goes back to the keymap menu,ESCquits (both configurable).
potemkeys --keymap "GG:S Default" # skip the menu
potemkeys --list-keymaps
potemkeys --config path/to/potemkeysoptions.jsonc
Linux note: on Wayland sessions neither SDL nor anything else can force always-on-top; run under XWayland or pin the window from your compositor.
Everything lives in potemkeysoptions.jsonc (JSON5, comments allowed).
The app looks for it in the current directory, then next to the executable, then falls back to the bundled copy.
Drop a copy next to the .exe to customize.
A keymap:
Key names are single characters (A, ;) or pynput key names in caps (CTRL, ALT, F1, SPACE).
Made a keymap for another game? Open a PR.
./scripts/setup.sh # installs uv, syncs deps (setup.cmd on Windows)
just run # or: uv run python -m potemkeys
just test
just exe # PyInstaller build into dist/
uv build && uv publish # PyPI
Code layout: keymap.py (keymap model + matching), engine.py (input state, display lines),
keys.py (pynput adapter + macro playback), app.py (pygame window), config.py (options file).
Everything except keys.py/app.py is pure Python and unit tested.
No license, DWYW, I'm not your dad.

