Such is the force of habit, that even in the midst of his terror he began mechanically to twiddle with his hair, and arrange the cock of his hat. 
: such is the force of habit, that even in his terror he began mechanically to twiddle with his hair, and arrange his hat. 