title: Why do we need Robot class when we have Actions class in selenium
body: <p>I was going through the selenium learning and when I was exploring interaction with keyboard and mouse topic, I found this code.
  With the help of Robot class,perform Enter :</p>
  
  <pre><code>Robot r=new Robot();
  r.keyPress(KeyEvent.VK_ENTER);
  </code></pre>
  
  <p>With the help of Actions class,perform Enter :</p>
  
  <pre><code>Actions action = new Actions(driver); 
  action.sendKeys(Keys.ENTER).build().perform();
  </code></pre>
  
  <p>Why do we need both the class to perform same actions? What is the difference between Robot class and Actions class? 
  TIA.</p>