dismiss keyboard when menu is activated.