I watched the debate, and I watched McCain make that face at the time.
If I recall correctly, it was Bush, McCain, and Alan Keyes on the stage -- and it was late in the primary debate season.