Okay - quite simple:
1) Batsman edges ball
2) Keeper makes hideous mess of attempting to catch it
3) Ball hits keeper's helmet
4) Keeper catches it
I gave it today but, soon after, remembered the bit of law that decreed that a ball cannot be a "fair catch" if it hits a fielder's protective helmet. I can't find any clarification as to whether that includes keepers or not.