force keyboard dismissal to get `textfield.text`