title: Send CTRL + T over ADB using sendevent or input keyevent
body: <h1>What I'm trying to do</h1>
  
  <p>I am trying to open a tab in Chromium using ADB. What I'm trying to accomplish is opening a tab within chromium using their hotkeys. I'm trying to hit this line of code from their source: <a href="https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java?rcl=120f241e3761e263d28f1b9194bd6cbf7aa56efd&amp;l=215" rel="nofollow noreferrer">https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java?rcl=120f241e3761e263d28f1b9194bd6cbf7aa56efd&amp;l=215</a></p>
  
  <h1>Here's the various things I've tried:</h1>
  
  <p>Using Android Key Events: <a href="https://developer.android.com/reference/android/view/KeyEvent" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/KeyEvent</a></p>
  
  <pre><code>adb shell sendevent /dev/input/event0 1 114 1
  adb shell sendevent /dev/input/event0 1 48 1
  adb shell sendevent /dev/input/event0 1 114 0
  adb shell sendevent /dev/input/event0 1 48 0
  </code></pre>
  
  <p>Using Android key codes from source:
  <a href="https://android.googlesource.com/kernel/msm.git/+/android-msm-hammerhead-3.4-kk-r1/include/linux/input.h" rel="nofollow noreferrer">https://android.googlesource.com/kernel/msm.git/+/android-msm-hammerhead-3.4-kk-r1/include/linux/input.h</a></p>
  
  <pre><code>adb shell sendevent /dev/input/event0 1 97 1
  adb shell sendevent /dev/input/event0 1 20 1
  adb shell sendevent /dev/input/event0 1 97 0
  adb shell sendevent /dev/input/event0 1 20 0
  </code></pre>
  
  <p>Using keyevent inputs</p>
  
  <pre><code>adb shell input keyevent KEYCODE_CTRL_RIGHT
  adb shell input keyevent KEYCODE_T
  </code></pre>
  
  <h1>An alternative way (but not what I'm trying to accomplish)</h1>
  
  <p>One way I've managed to accomplish opening a tab, but not a way I'm in favor of us using intents. I want to open the tab using the actual key events instead of using this intent.</p>
  
  <p>Way that does open a tab:</p>
  
  <pre><code>adb shell am start -a "android.intent.action.VIEW" -d "google.com"
  </code></pre>
  
  <h1>Other StackOverflow articles I've referenced:</h1>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/14260062/simulated-two-keyevents-with-adb-shell-for-alt-shift-etc/14260449">Simulated two keyevents with adb shell for ALT, SHIFT, etc</a>  </li>
  <li><a href="https://stackoverflow.com/questions/26204766/simulating-combination-of-key-presses-from-adb-terminal">Simulating combination of key presses from ADB terminal</a></li>
  </ul>