@Override
  public Response safeHandle(HttpRequest request) throws JSONException {
    SelendroidLogger.info("send keys command");
    String[] keysToSend = extractKeysToSendFromPayload(request);
    getSelendroidDriver(request).getKeyboard().sendKeys(keysToSend);

    return new SelendroidResponse(getSessionId(request), "");
  }
Send keys to the OS regardless of the focused element.
selendroid-server/src/main/java/io/selendroid/server/handler/SendKeys.java