Updated

J.W. Walsh found Charlie Moore for a 6-yard touchdown pass with 4:16 left in the fourth quarter to help No. 21 Oklahoma State rally for a 33-29 win over Kansas State.

Walsh finished 24-of-38 passing for 245 yards for the Cowboys, who narrowly avoided their second straight loss after a defeat at West Virginia last week.

After falling behind 29-23 in the fourth quarter, Oklahoma State (4-1, 1-1 Big 12 Conference) drove 75 yards in six plays. Walsh was 4-of-5 passing on the drive, including the go-ahead touchdown pass to Moore.

Ben Grogan later added a field goal for the Cowboys, one of four in the game for the freshman.

Daniel Sams accounted for 299 yards of total offense and three touchdowns for the Wildcats (2-3, 0-2), who lost their second straight game.