In Counter-Strike: Source, you can bind a key to an
action, which means that when you press a certain key,
an action will happen.
For instance, you can bind a certain key to say a phrase
that you often say, such as "damage". Then when you want
to check your damage stats, just press that key instead
of typing the whole thing.
To do this, you need to go into the developer console
(press the tilde key ~ ) and type bind "key"
"say whatever".
So let's use the damage phrase as an example, and let's
say I want to use the P key. I would type in the console
bind "p" "say damage" and hit Enter. Now
whenever I press P in the game, it will be the same as
typing "damage" into the chat.
When you type which key you want to bind, some of them
aren't too easy to think of. Like the keypad numbers all
start with KP_ and then their name. So
this table lists what all the key names are. *Note* They
are not case sensitive, so you can use lowercase letters
if you wish.
Name to use when binding
Normal Name
1
One
2
Two
3
Three
4
Four
5
Five
6
Six
7
Seven
8
Eight
9
Nine
0
Zero
A
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
Y
Y
Z
Z
F1
F1
F2
F2
F3
F3
F4
F4
F5
F5
F6
F6
F7
F7
F8
F8
F9
F9
F10
F10
F11
F11
F12
F12
`
Left Quote or Tilde
'
Right Quote
-
Hyphen
=
Equals sign
]
Right Bracket
\
Forward Slash
,
Comma
/
Backslash
SPACE
Spacebar
ENTER
Enter
ESCAPE
Escape
PAUSE
Pause/Break
BACKSPACE
Backspace
TAB
Tab
SEMICOLON
Semicolon ;
SHIFT
Shift
CTRL
Control
ALT
Alt
UPARROW
Up Arrow
DOWNARROW
Down Arrow
LEFTARROW
Left Arrow
RIGHTARROW
Right Arrow
INS
Insert
HOME
Home
PGUP
Page Up
PGDN
Page Down
DEL
Delete
END
End
KP_HOME
Keypad Home/7
KP_UPARROW
Keypad Up Arrow/8
KP_PGUP
Keypad Page Up/9
KP_LEFTARROW
Keypad Left Arrow/4
KP_5
Keypad 5
KP_RIGHTARROW
Keypad Right Arrow/6
KP_END
Keypad End/1
KP_DOWNARROW
Keypad Down Arrow/2
KP_PGDN
Keypad Page Down/3
KP_INS
Keypad Insert/0
KP DEL
Keypad Delete
KP_SLASH
Keypad Backslash
KP_MINUS
Keypad Hyphen
KP_PLUS
Keypad Plus
*
Keypad Star
MOUSE1
Mouse Button 1
MOUSE2
Mouse Button 2
MOUSE3
Mouse Button 3 (Middle Button)
MWHEELUP
Mouse Scroll Wheel Up
MWHEELDOWN
Mouse Scroll Wheel Down
After you specify which key to use, you need to specify
an action. Common actions are say which
displays a message to everyone, and say_team,
which displays a message to your team.