Moses hit a jumper to give Purdue (7-2) a 68-66 lead with 1:04 remaining. Kansas (5-5) answered with an Asia Boyd layup to tie it with 36 seconds to play.
Purdue's Whitney Bays was fouled by Chelsea Gardner at the 12-second mark. Bays made one of two free throws, putting the Boilermakers ahead 69-68.
After both teams called timeouts, Boyd missed what would have been the go-ahead layup with two seconds to play. KK Houser grabbed the rebound and was fouled by Boyd. Houser made both free throws to end the game.
Houser scored 14 points with eight assists. Bays added 12 points and grabbed a team-best seven rebounds.
Gardner and Boyd each scored 17 points, and Charlicia Harper added 10 to lead the Jayhawks.