I believe it happens because chrome sees that there is a password textbox under the settings api key and so tries to find a normal textbox (which happens to be the search bar) and autofill it with your username (and sometimes fill the api key as your password). I will fix this by making the api key textbox a normal textbox and hide it instead.