Try to do this:
replace current scene to
next_scene must contain layer with keypad enabled and at least one sprite.
When applications begin transition - close it and take a crash.
Pullrequest sended by me not totally correct.
But having CCKeypadDispatcher::sharedDispatcher()->purgeSharedDispatcher() both in purgeDirector() and \~CCDirector() saves me.