title: What's the keyEvent for the arrow down button on the keyboard?
body: <p>I would like to clear the focus of the edit text when my keyboard is closed but unfortunately there is a key on the keyboard of which I don't know the <a href="https://developer.android.com/reference/android/view/KeyEvent.html" rel="nofollow noreferrer">keyEvent</a>. Can somebody clarify please?</p>
  
  <p><a href="https://developer.android.com/reference/android/view/KeyEvent.html" rel="nofollow noreferrer">Here's the reference for the KeyEvent class.</a></p>
  
  <p><a href="https://i.stack.imgur.com/TLcpd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TLcpd.png" alt="enter image description here"></a></p>
  
  <p>EDIT 1:
  This is my code:</p>
  
  <pre><code>holder.editText.setOnEditorActionListener { v, actionId, event -&gt;
  
                  if(actionId == KeyEvent.KEYCODE_ENDCALL || actionId == KeyEvent.KEYCODE_BACK){
                      val imm = v.context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
                      imm.hideSoftInputFromWindow(v.getWindowToken(), 0)
                      v.clearFocus()
                      true
                  } else {
                      false
                  }
              }
  </code></pre>