The majority of the proceeds from a gate of 69,591 are set to be given to charity.
Keane told the Old Trafford crowd: "This is something I'll remember for the rest of my life."
The ex-Nottingham Forest star is widely expected to hang up his boots this summer, although he has a year left on his Celtic contract.