MORGANTOWN, W.Va. — Jake Waters threw for a career-high 400 yards and a touchdown, Tyler Lockett returned a punt for a score and No. 12 Kansas State held on to beat sloppy West Virginia 26-20 on Thursday night.

Kansas State (8-2, 6-1 Big 12, No. 12 CFP) rebounded from a blowout loss at TCU to move into a first-place tie with the idle Horned Frogs with two weeks left in the regular season. No. 6 Baylor can make it a three-way tie Saturday when it hosts Oklahoma State.

Waters was 22-of-34 passing. Lockett caught 10 passes for 196 yards, and Matthew McCrane kicked four field goals.

The Mountaineers (6-5, 4-4) have lost three straight after winning four in a row. West Virginia committed four turnovers, with two of them occurring inside the Kansas State 30, and Josh Lambert missed a 40-yard field goal try.

West Virginia’s Skyler Howard threw two touchdown passes after Clint Trickett left with what coach Dana Holgorsen said was a concussion. Trickett didn’t return after throwing his second interception in the third quarter. Trickett has now gone 10 consecutive quarters without a TD pass.

Lockett returned a punt 43 yards just before halftime to put the Wildcats ahead 17-3. West Virginia punter Nick O’Toole was supposed to kick the ball to the right, but Lockett fielded the ball on the other side of the field and scored untouched.

Lockett had fumbled away a kickoff earlier in the game.

Howard rallied the Mountaineers on his first series, running 16 yards to set up his 7-yard TD toss to Kevin White that trimmed the Wildcats’ lead to 23-10 midway through the third quarter.

Howard engineered a 17-play drive on the next series, but West Virginia turned it over on downs at the Kansas State 26.

After McCrane missed a 22-yard field goal, Howard hit Mario Alford with a short pass, and he went 53 yards untouched to make it 23-17 with 7:23 left in the fourth quarter.

But Michael Molinari’s ensuing kickoff went out of bounds. Waters hit Lockett across the middle for 28 yards to the West Virginia 25 and McCrane’s fourth field goal made it a two-possession game.

North Carolina 45, No. 25 Duke 20: In Durham, North Carolina, Marquise Williams threw for two touchdowns and rushed for two more as North Carolina bounced rival Duke.

Williams was 18-of-27 for 276 yards with touchdown passes covering 3 yards to Quinshad Davis and 1 yard to Mack Hollins. He also had scoring runs of 1 and 16 yards.

Tim Scott returned an early fumble 10 yards for the tone-setting score. The Tar Heels (6-5, 4-3 ACC) led 38-7 in earning bowl eligibility while wrapping up the Coastal Division title for Georgia Tech.

Anthony Boone was 22-of-40 for 262 yards with two touchdowns for the Blue Devils (8-3, 4-3). They needed to win their last two to earn a second straight ACC title game berth.

The Tar Heels scored 21 points off Duke’s three turnovers. Duke managed 378 total yards against a defense that allows an ACC-worst 512 per game.

T.J. Logan rushed for 116 yards and a 1-yard touchdown, and Ryan Switzer caught three passes for 109 yards. The Tar Heels reached the six-win mark for the second straight year and seventh time in eight years while beating Duke for the first time since 2011.

The offense kept clicking behind Williams, who had 98 rushing yards and has accounted for eight touchdowns in six days — he rushed for three and threw for another TD while beating Pittsburgh on Saturday. North Carolina rolled up 591 total yards — three shy of Duke’s season worst.