title: How to presskey editor action on Espresso
body: <p>How do you press the Editor Action key on Android softkey using Espresso? I tried:</p>
  
  <pre><code>onView(withId(R.id.edToNumber)).perform(typeText("MDO158"),ViewActions.pressKey(KeyEvent.ACTION_UP), closeSoftKeyboard())
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SiVo5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SiVo5.png" alt=""></a></p>