You can simply inspect the webpage and see as where is the element and look for the inspect section, you will find the tag name and you can use that accordingly. All you need to keep in mind is that they are not duplicate.
See this :
Use the command as such:
driver.findElement(By.name("q")).sendKeys("Keyword");
Hope this helps.