Adds method to dismiss keyboard