How do I clear the search box programatically?

I need the script code to clear this box so i can bind it to a key. I'm not sure how to do it. I believe it is a search box, not a filter.

Please advise.

Just hit backspace to go up a level.

To clarify: If you're viewing Search Results then the field will show what you searched for (unless you start typing something else into it), but if you go back up (backspace) to the folder where you searched from, the field will be cleared again.