Previously as noted in a few questions:
How to detect iPad user tap on keyboard hide button?
detect iPad keyboard Hiding button
...the way to detect if the user hit the hide keyboard button on an iPad was to subscribe to the UIKeyboardWillHideNotification notification.
However, apparently from iOS 6 on, this notification has been sent in a number of places not just when the user hits the retract keyboard button. For example, that notification is sent when the iPad rotates even though the keyboard itself does not hide.
I have discovered an inelegant work around, which I will post here in case anyone else is struggling with this problem, but would much appreciate any elegant solutions people have found to this problem.