If you want to send keys to a text box and send tab key both at the same time instead of writing two different statements, use a comma.
driver.findElement(By.name("name")).sendKeys("daniel",Keys.TAB);
By using a comma you can send both username and key-stroke at the same time.
If you wish to Learn Selenium visit this Selenium Training by Intellipaat.