title: Protractor version 5.2.0 - How to pass a specific key (Ex: TAB) as a parameter in sendkeys()?
body: <p>I wanted to pass the key names as a parameter, to make it more reusable instead of hard coding. </p>
  
  <p>Just something like below </p>
  
  <pre><code>function Keyboardaction(keys)
      {
      return browser.actions().sendKeys(protractor.Key.(keys)).perform();
      }
  
  Keyboardaction(TAB);
  </code></pre>
  
  <p>Can anyone help on the same</p>