Shane Southwell made two free throws with 21 seconds left, then blocked Gary Browne's layup attempt with 1 second left to preserve No. 18 Kansas State's 65-64 win over West Virginia on Saturday.
Southwell and Rodney McGruder both had 17 points for the Wildcats (13-2, 2-0 Big 12), who won for the sixth straight time.
Jabarie Hinds had a career-high 15 points for West Virginia, (8-7, 1-2). Aaric Murray added 11 points and Terry Henderson scored 10.
The lead changed hands six times over the final eight minutes. After Southwell's free throws, West Virginia had two chances to retake the lead.
But Hinds missed a wild jumper from 16 feet with 12 seconds left. The Mountaineers got the rebound and called timeout.
The inbounds pass ended up in the backcourt. Browne grabbed the loose ball, dribbled the length of the court and attempted a layup, which Southwell swatted away just before the final buzzer.
West Virginia, coming off an overtime win at Texas, could have used a win over Kansas State to improve its standing for a postseason berth. Instead, the Mountaineers fell to 0-3 this season against ranked teams.
Both teams shot 51 percent from the floor for the game. But West Virginia went 12 of 22 from the free-throw line and played without second-leading scorer Juwan Staten, who was benched in a disciplinary move by coach Bob Huggins for the second straight game.
After a first half in which Kansas State nearly the entire way, it was a streaky second half for both teams.
West Virginia went on an 8-0 run in the first two minutes after halftime, with Hinds' layup giving the Mountaineers their largest lead, 41-36.
Kansas State responded with 12 straight points — seven from McGruder — to go ahead 48-41, but the Wildcats couldn't put away the Mountaineers. Kansas State scored just one basket — on a goaltending call — over a stretch of nearly eight minutes.
Freshman Eron Harris put West Virginia ahead 64-63 lead with an off-balanced jumper from the baseline with 26 seconds left, and the Mountaineers quickly fouled Southwell, who made both free throws for the final margin.
Despite having four players in early foul trouble, Kansas State shot 68 percent (15 of 22) from the floor in the first half and the Mountaineers shot 65 percent (11 of 17). Most baskets made by either team were either layups or dunks.