Keyes homered in the four-run eighth inning.
Cody Neer hit a two-run homer for Nebraska (21-4-1, 7-1-1) in the seventh. Craig Corriston singled in the other Cornhuskers run in the first.
Riley Boening (2-0) got the win for Texas, giving up three runs on three hits in 6 1-3 innings. Cole Green picked up his first save of the season in 2 2-3 innings of relief.
Aaron Pribanic (2-1) took the loss, giving up six runs on seven hits in six innings.