Added function for dismissing the keyboard from anywhere in the application