Keyboard shortcut for switching from address bar to main pane in Chrome
This question is already answered here, but the easiest solution is to make a custom search engine with the url as javascript:. 

If you set the keyword to a letter (l for example), typing l + return will exit the address bar.