close the keyboard anytime the menu button tapped