The keys.dat file in (as well as in GTA III and San Andreas) is a configuration file that maps in-game actions (like "fire", "forward", "enter vehicle") to physical keyboard keys or joystick buttons .