Here is another hand from that table where I folded AA against MANIAC and SOLID (see topic Folded AA... good move?)

MANIAC and I are equal in chip stack. On PP $50 NL cash game.

I'm dealt AQ, raise to like $2, MANIAC calls. Everyone else folds.

Flop is K,Q,K (no flush draws possible, that I remember). I bet $4, MANIAC calls. River is A. I bet $4, MANIAC calls. River is a rag. I bet $4, MANIAC comes over the top for $15.

I folded. Good move? I had him on a 3rd K.