Selenium Java - Actions Class
Identify the error in the following Selenium Java code:
Actions actions = new Actions(driver);
actions.keyDown(Keys.SHIFT).sendKeys("test").perform();
actions.keyUp(Keys.SHIFT).perform();