Search for [XComGame.XComTacticalInput] and add your bind below it.

You can use PatcherGUI to apply a "Developer Console Activation" patch (often found as a .txt file on Nexus Mods) to your game. Essential Console Commands

Once enabled, these commands can drastically alter your campaign: Dev Console (Long War) - UFOpaedia

This is the simplest way to execute specific commands by mapping them directly to keys.

Open with a text editor (e.g., Notepad). Always make a backup first .

Navigate to your installation folder: Steam/steamapps/common/XCom-Enemy-Unknown/XEW/XcomGame/Config/ .

Example: .Bindings=(Name="U", Command="restartlevel", Alt=True)