LOUISVILLE, Kentucky (Ticker) -- Indiana coach Mike Davis lost his cool, and the Hoosiers lost any chance to keep their perfect record intact.
Keith Bogans hit five of six free throws after Davis was ejected with 2.6 seconds left as No. 16 Kentucky handed the sixth-ranked Hoosiers their first loss of the season, 70-64, at Freedom Hall.
"We play big games all the time," Kentucky coach Tubby Smith said. "I think we can play with any team in the nation. When the right team comes out, we can beat any team in the nation. Tonight, we came out focused and ready to play."
Following five lead changes in the last two minutes, Indiana's Bracey Wright drove the right baseline in the final seconds and missed a layup off the side of the backboard.
Davis became enraged no foul was called and charged onto the floor, drawing his first technical. He continued to berate the officials, picking up a second technical and an automatic ejection.
Davis was contrite afterwards.
"I'd like to apologize to the team, the Indiana supporters and the officials," he said. "It wasn't right for me to embarrass an official like that."
But Indiana guard A.J. Moye came to the defense of his coach.
"We beat ourselves tonight," Moye said. "Coach will take the blame for the loss, but he didn't cause us to lose. We just have to learn from our mistakes and move on."
Davis wanted a foul called on Kentucky's Jules Camara, but replays appear to show that Wright accidentally was bumped by teammate Jeff Newton.
Bogans made all four technical free throws, then one more for a foul called on Newton, who grabbed him to stop the clock after Camara pulled down the rebound.
"Coach is an emotional person and he was upset with the call," Moye said. "Without coach Davis, we never would've been in the game. He didn't cost us the game, the coach never costs you a game."
"Maybe we got the luck of the draw," Kentucky guard Gerald Fitch said. "Indiana may be angry, but I'll take the win. It was a good battle and we earned the win."
It was a bizzare conclusion to an otherwise thrilling game. The Hoosiers (8-1) took their final lead, 64-63, on Wright's follow shot with 24 seconds left. The basket came after Newton missed a pair of free throws.
Newton took over down the stretch, scoring 14 straight Indiana points during an eight-minute span as the Hoosiers rallied from a 10-point deficit. He finished with 24 and 11 rebounds for his sixth straight double-double.
But on the ensuing possession, Kentucky got the ball inside to Marquis Estill, who scored on a driving layup to put the Wildcats (6-2) in front, 65-64, with 12 seconds remaining.
Bogans scored 17 points to lead Kentucky, which rebounded from a 71-67 loss to Michigan State.
"It was a big win," Bogans said. "Indiana is a top-ranked team that hadn't been beaten all year. After the tough loss last week, we wanted to come out and play well."
The Wildcats got off to a sluggish start, falling behind 17-8 on Newton's jumper with 8:50 left in the first half. But they finally came alive, taking a 27-24 lead on Bogans' 3-pointer with 3:03 to go in the half.
Boguns capped a 13-0 spurt with a layup that made it 31-24 with 1:23 left. Wright's layup with a minute to go pulled the Hoosiers within 31-26 at intermission.
Kentucky opened its biggest advantage, 38-28, on Eric Daniels' layup with 17:29 left, and the Wildcats maintained the lead for most of the first half.
Indiana stayed close, however, before Newton caught fire. His 3-pointer made it 54-51 with 8:15 remaining and no other Hoosier scored for the next six minutes.
After missing six chances to go ahead, Indiana finally took the lead, 60-59, on Newton's layup with 2:19 to play. That set the stage for the frantic finish.
The Wildcats answered on Camara's layup before Newton made a pair from the line to put the Hoosiers back up, 62-61. Camara dunked at the other end to give Kentucky a 63-62 lead with 1:06 remaining.
Fitch scored 16 points and Estill added 14 for the Wildcats, who have won nine of the last 11 meetings with the Hoosiers to take a 25-21 lead in the all-time series.
"A lot of people didn't expect us to win this game, but we just went out and never gave up," Bogans said. "They got on us early, but we're never going to fold. We're going to play the whole 40 minutes."
Wright chipped in 18 points, but no other player had more than six for Indiana.