It is the gearbox detent plunger. It locates the cam drum in a fixed position for each gear. When you operate the gear lever, the shift mechanism rotates the cam drum, the bullet shaped plunger slides out of a dimple in the cam drum, compressing the spring. When the cam drum reaches the next gear position, the spring pushes the plunger into the corresponding detent (dimple) for that gear and holds the cam drum from freely rotating. There is a detent for every gear and for neutral. Without this you wouldn't be able t select gears properly and it wouldn't stay in any gear.