Looking for GTA V key codes for your modding or control setup? Here’s the complete-updated list of GTA 5 keyboard keys and their numeric codes for full-size keyboards, perfect for mods and configuration.
If you’re a modder or power user playing Grand Theft Auto V Enhanced Edition, having access to the complete list of keyboard key codes is essential for scripting mods, custom controls, or editing config files.
Full GTA V Keyboard Key Codes
Below is an updated list of full-size keyboard keys along with their corresponding key codes used by GTA 5 Legacy and GTA V Enhanced edition on Windows PC:
Key Name | Key Code |
---|---|
Escape | 322 |
F1 | 288 |
F2 | 289 |
F3 | 290 |
F4 | 291 |
F5 | 292 |
F6 | 293 |
F7 | 294 |
F8 | 295 |
F9 | 296 |
F10 | 297 |
F11 | 298 |
F12 | 299 |
1 | 157 |
2 | 158 |
3 | 160 |
4 | 164 |
5 | 165 |
6 | 159 |
7 | 161 |
8 | 162 |
9 | 163 |
0 | 160 |
A | 34 |
D | 35 |
W | 32 |
S | 33 |
Q | 44 |
E | 38 |
R | 45 |
T | 245 |
Y | 246 |
U | 22 |
I | 23 |
O | 24 |
P | 199 |
Enter | 18 |
Backspace | 177 |
Tab | 37 |
Left Shift | 21 |
Left Ctrl | 36 |
Left Alt | 19 |
Space | 22 |
Caps Lock | 137 |
Delete | 178 |
Insert | 121 |
Home | 327 |
End | 335 |
Page Up | 329 |
Page Down | 317 |
Arrow Up | 172 |
Arrow Down | 173 |
Arrow Left | 174 |
Arrow Right | 175 |
Numpad 0 | 108 |
Numpad 1 | 100 |
Numpad 2 | 101 |
Numpad 3 | 102 |
Numpad 4 | 104 |
Numpad 5 | 105 |
Numpad 6 | 106 |
Numpad 7 | 107 |
Numpad 8 | 108 |
Numpad 9 | 109 |
Numpad + | 110 |
Numpad – | 111 |
Numpad * | 112 |
Numpad / | 113 |
Scroll Lock | 302 |
Pause/Break | 303 |
Note: These numbers vary depending on the system (e.g., DirectInput, XInput, GTA key mapping). For GTA V modding (especially with trainers like Menyoo or Native Trainer).
Most mods do not use this method, instead they relay on Virtual-Key Codes using Decimal Values or Hex Values.

What Are GTA V Key Codes?
GTA V key codes are numeric values used in modding and scripting to identify specific keyboard keys. These key codes are especially useful for tools like OpenIV, Menyoo, or ScriptHookV where key bindings require numeric input codes.
These codes allow mod creators and scripters to map actions (like opening menus or triggering events) to specific keys on a keyboard.

Why Do You Need Keyboard Key Codes?
- For mod development (e.g., trainers like Menyoo or Simple Trainer)
- Creating custom scripts or missions
- Debugging or reassigning default key bindings
- Ensuring compatibility with custom control setups

How to Use These Key Codes
You can use these key codes in:
.ini
files for mod configuration- ScriptHookV or LUA mods
- Menyoo XML setups
- RagePluginHook configurations
Example usage:
keyboard_key=317 ; PAGE DOWN

Tips for Modders
- Always back up your configuration files before editing
- Not all keys work the same across every mod; test carefully
- Use Notepad++ or similar to edit
.ini
files for syntax clarity - For controllers, you may need gamepad-specific button IDs instead
Frequently Asked Questions (FAQ)
Here are list of questions with their answers based on today’s post:
Can I use multiple keys for one function?
Depends on the mod, but most .ini
files only accept one key value.
How do I find out what key code corresponds to a key not listed here?
You can use tools like AutoHotKey’s KeyHistory or run debugging scripts in ScriptHookV.
Do these codes work for all GTA V editions?
Yes, they are standard across all PC versions, including Enhanced Edition and the Legacy versions.
Last Updated: May 2025
Please report any errors in the comments.
This is spot on.