### Question:
KeyboardActions { public KeyboardActions keyDown(Keys theKey) { actions().keyDown(theKey).perform(); return this; } KeyboardActions(WebDriver driver); @Deprecated Keyboard basic(); KeyboardActions keyDown(Keys theKey); KeyboardActions keyUp(Keys theKey); KeyboardActions sendKeys(CharSequence... keysToSend);  }### Answer:
@Test public void testKeyDown() { KeyboardActions actions = new KeyboardActions(driver); actions.keyDown(Keys.SHIFT); verify(mouse, never()).mouseMove(any(Coordinates.class)); verify(keyboard).pressKey(Keys.SHIFT); }