title: Android listen for backbutton & Menu button longclick together
body: <p>I am overriding the behaviour of backbutton &amp; Menu button Single Click &amp; long click together.How can i detect this in Android code</p>
  
  <p>Screen shot is taken from Nexus phone version (6.0)</p>
  
  <p>After Clicking on Back &amp; Menu button together,I got this Log</p>
  
  <pre><code> Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=69741827, downTime=69741172, deviceId=-1, source=0x101 } I 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/rgT7V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rgT7V.png" alt="enter image description here"></a></p>