The final 30 seconds were a fiasco.
Keenan Evans had a steal and converted on the other end to give Texas Tech a one-point lead.
Then D.J. Johnson committed a foul. And Kansas State coach Bruce Weber received a technical foul.
And the Red Raiders made it count at the free-throw line as Aaron Ross sank two and Niem Stevenson made one to give Texas Tech the 66-65 win over No. 25 Kansas State.
Evans led the Red Raiders with 18 points, followed by Zach Smith with 16 and Aaron Ross with 10.
Kamau Stokes paced the Wildcat offense with 17 points, followed by Dean Wade with 12 points, all of which he scored in the second half.
D.J. Johnson added 11.
With 10:07 to play, Barry Brown made a layup to give Kansas State a seven-point lead, its largest of the night.
And the Red Raiders responded.
Texas Tech hadn’t scored on back-to-back possessions since early in the second half but finally strung things together.
Zach Smith converted on an and-1 and Keenan Evans made a jumper to cut the lead to two before it was Evans again with the 3-ball to put Tech on top by one.
But, as was the case in a game with three ties and seven lead changes, the Wildcats were quick with an answer of their own.
The Red Raiders started out hot behind six makes on their first 11 buckets.
But after Zach Smith took his man off the dribble for a layup with 11:30 to play in the period to put Texas Tech up by six, the Red Raiders went cold.
Tech only hit two more buckets the rest of the half - a layup by Devon Thomas and an and-1 bucket by Aaron Ross.
During that time, however, the Red Raiders were able to keep adding to the score from the free-throw line as they finished the first half 8-for-9 from the stripe.
For Kansas State it was the opposite.
The Wildcats started the game shooting 5-for-17 from the floor and finished out the half 3-5 behind Kamau Stokes who hit just about every shot he put up behind the perimeter.
Of Kansas State’s eight first half buckets, six of them came from behind the 3-point line.
Stokes had four of them for a game-high 14 points at intermission.