In the Q3 source it is used twice - once on level load and in G_Spawn where it is called whenever an entity is created.
Returns keynum of the key that has the binding specified by binding.
Prototype
inttrap_Key_GetKey(constchar*binding);
Parameters
binding : command string presumably bound to a key.
Remarks
Case-sensitive.
Unknown: what happens when many keys have this binding.