With the score tied at 24, Bell found running room to the right and went all the way to the end zone to put the Spartans ahead. Minnesota had the ball at the Michigan State 45 with 15 seconds left, but Gray threw an interception.
Gray was 19 of 32 for a career-high 295 yards with three touchdowns and two interceptions, and McKnight caught nine passes for a career-high 173 yards.
Michigan State entered the game ranked No. 1 in the nation in pass defense, but Gray and McKnight didn't seem to notice. The 6-foot-4 quarterback found his senior receiver with a short pass early in the first quarter, and McKnight slipped past three potential tacklers before eventually dragging defensive back Johnny Adams into the end zone for a 64-yard touchdown to open the scoring.
Cousins answered with a 4-yard scoring pass to Keith Nichol, but a fumble by the Spartans' Edwin Baker later in the quarter gave Minnesota the ball at the Michigan State 26. Gray's 13-yard touchdown pass to McKnight put the Gophers back ahead.
The Spartans tied it at 14 on a 1-yard scoring run by Bell in the second quarter, but Michigan State still looked out of sorts. A short while later, the Spartans had the ball inside the Minnesota 20 when there was movement up front for a false start. A frustrated Cousins took the snap and spiked the ball in exasperation, drawing an unsportsmanlike conduct penalty and knocking his team out of field goal range.
Down 17-14 in the final minute of the half, Michigan State finally found a rhythm, driving 74 yards and taking the lead on a 2-yard touchdown pass from Cousins to Todd Anderson with 5 seconds left in the second quarter.
It was Anderson's first career touchdown.
The advantage was short-lived. Minnesota went 80 yards in 11 plays at the start of the third and took a 24-21 lead when Gray found McKnight in the back of the end zone for a 15-yard touchdown on third-and-12.
Michigan State had a touchdown wiped out by a replay review later in the third. A sideways pass from Cousins to Bell hit the ground, and Minnesota defensive back Kyle Henderson stopped, assuming the play was over. Bell picked up the ball and ran 60 yards to the end zone, but after further review, officials ruled the pass went forward and changed their call to an incompletion.
Dan Conroy tied it at 24 with a 40-yard field goal 11 seconds into the fourth quarter, after tight end Brian Linthicum made a nice play in the end zone to prevent a possible interception. That drive started at the Minnesota 41 after Trenton Robinson's acrobatic interception.
Robinson also made the interception in the final seconds that sealed the win.