iTunes Keyboard Shortcut for exiting search function
Once the results are returned to you, you can use the up and down arrows followed by the Return key in order to select the results. If you mean by exiting out of the search bar entirely, try pressing the Tab key.