In Call of Duty Modern Warfare 2, K9 units (dogs) appear in some of the missions and the campaign. I sometimes manage to shoot and kill the K9 before it reaches me, but if that fails, the K9 jumps to me and I fall to the ground. In that scenario, the instruction is to press T (melee attack) to snap the neck of the K9, which seems pretty straightforward.
However, in reality this rarely seems to work. I have tried pressing T once once the K9 jumps and I fall to the ground, but to no avail. Then I pressed the T after 'Press T' warning appeared, again didn't work. Then I tried spamming the T key, which didn't work either.
Is there a specific time and a number of presses of the T key are we supposed to follow, in order to kill the K9?