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.
int trap_Key_GetKey(
const char *binding
);