The Cornhuskers (19-11, 11-7) won for the 10th time in 12 games to clinch fourth place in the Big Ten for their highest conference finish since 1997-98. The Badgers (25-6, 12-6) had their longest conference win streak since 1940-41 end at eight games.
Shields made a couple free throws, Ray Gallegos hit a 3 and Shields dunked in transition to start a 12-1 run that turned a 52-48 deficit into a 60-53 lead with 5 minutes left.
By the time it was over, Nebraska's student section had emptied and the party had started on the court.
Frank Kaminsky led Wisconsin with 14 points. Nigel Hayes added 12, Josh Gasser had 11 and Ben Brust finished with 10.
The Huskers, looking for their first NCAA tournament appearance since 1998, picked up a second win against a top-10 team for the first time since 1993-94. Their other one was at then-No. 9 Michigan State on Feb. 16. The Huskers won 11 conference games for the first time since 1965-66.
Nebraska also finished with a Big Ten-best 15-1 home record by defeating the conference's best road team.
The game was billed as "No-Sit Sunday," with coach Tim Miles imploring fans to stay on their feet the whole game. The amped-up sellout crowd of 15,998 at Pinnacle Bank Arena lived up to the occasion, helping the Huskers beat Wisconsin for the first time in five meetings since they joined the Big Ten three years ago.
Walter Pitchford added 15 points for the Huskers.
On top of a Nebraska defense that held Wisconsin to 43-percent shooting, the Badgers struggled at the free-throw line, making just 11 of 21.
(Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)