private CommandLine adbCommand(String... args) {
    CommandLine command = adbCommand();
    for (String arg : args) {
      command.addArgument(arg, false);
    }
    String commandString = command.toString();
    if (commandString != null && commandString.length() > MAX_ADB_COMMAND_LENGTH) {
      throw new RuntimeException("Adb command must be under " + MAX_ADB_COMMAND_LENGTH);
    }
    return command;
  }
Use adb to send a keyevent to the device.

Full list of keys available here:
http://developer.android.com/reference/android/view/KeyEvent.html

@param value - Key to be sent to 'adb shell input keyevent'
selendroid-standalone/src/main/java/io/selendroid/standalone/android/impl/AbstractDevice.java