refactored Dialogs.keyboard "namespace" out into its own define() module.