Bind
bind
is a console command that lets you bind other console commands to a key.
Syntax
bind KEY COMMANDS
If you wanted to make your v key toggle noclip, you would type bind "v" "noclip"
in the console.

Special Keys
- tab
- enter
- escape
- space
- backspace
- uparrow
- downarrow
- leftarrow
- rightarrow
- alt
- ctrl
- shift
- ins
- del
- pgdn
- pgup
- home
- end
- kp_home
- kp_uparrow
- kp_pgup
- kp_leftarrow
- kp_5
- kp_rightarrow
- kp_end
- kp_downarrow
- kp_pgdn
- kp_enter
- kp_ins
- kp_del
- kp_slash
- kp_multiply
- kp_minus
- kp_plus
- capslock
- joy1-4
- aux1-31
- mwheeldown
- mwheelup
- mouse1-5
- pause
Related console commands
Todo: binds_per_command
BindToggle
A convenient command for toggling a Cvar on or off by pressing a key. Functionally identical to bind KEY "increment var CVAR 0 1 1"
.
Syntax:
BindToggle KEY CVAR
If you wanted your p key to turn sv_cheats on or off, you would type BindToggle p sv_cheats
.
bind_mac
Functions identically to bind
except it only affects Mac OS users, not Windows.
unbind
The opposite of bind
. Sets a key to do nothing.
Syntax:
unbind KEY
To make your left click do nothing, you would type unbind MOUSE1
.
unbind_mac
Functions identically to unbind
except it only affects Mac OS users, not Windows.
unbindall
The infamous command that unbinds all the keys.

key_listboundkeys
Lists all keys that are bound to something, and what they are bound to.
Example input and output from Half-Life 2:
] key_listboundkeys "6" = "slot6" "1" = "slot1" "a" = "+moveleft" "2" = "slot2" "c" = "impulse 50" "3" = "slot3" "d" = "+moveright" "4" = "slot4" "e" = "+use" "5" = "slot5" "f" = "impulse 100" "g" = "phys_swap" "q" = "lastinv" "w" = "+forward" "r" = "+reload" "z" = "+zoom" "s" = "+back" "`" = "toggleconsole" "SPACE" = "+jump" "NUMLOCK" = "pause" "ESCAPE" = "cancelselect" "SHIFT" = "+speed" "CTRL" = "+duck" "ALT" = "+walk" "F5" = "jpeg" "F6" = "save quick" "F9" = "load quick" "MOUSE1" = "+attack" "MWHEELDOWN" = "invnext" "MOUSE2" = "+attack2" "MWHEELUP" = "invprev"
key_findbinding
Searches through the list of bound keys and returns the ones that have a given substring in the command field.
Syntax:
key_findbinding STRING
Example input and output from Half-Life 2:
] key_findbinding slot "1" = "slot1" "2" = "slot2" "3" = "slot3" "4" = "slot4" "5" = "slot5" "6" = "slot6"