New dismissKeyboard utility method.