Great question
First of all, reacting to the "GO" or "SEARCH" return key presses is your responsibility. Meaning that when the user clicks on "GO" - in your app, you need to catch that event, and implement whatever you want there (probably search something..). Meaning that you can take that implementation and just push it before dismissing the keyboard.
EDIT:
First this is how to respond to return key clicks in your app:
conform to the text field delegate:
@interface MyViewController : UIViewController <UITextFieldDelegate>
and then override this method with your implementation - what do you want to do when the user clicks the return key? (or go or search etc..):
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
// your implementation
return YES;
}
This is how you respond to clicks on the return key and implement whatever you want when it's clicked.
notice that you can change the traits of the button to GO and SEARCH using
theTextField.returnKeyType = UIReturnKeySearch;
Notice that YOUR implementation is what matters in the whole deal here - and you can just embed this implementation right before dismissing the keyboard
Thanks and good luck!