title: Detect back event on android keyboard
body: <p>I have some intents inside a tab controller and for one of them I have an edit text which I need to know for sure when it has focus and when it loses this focus.
  I have mapped most of the events like focus listener, OnEditorActionListener and so on, now my only problem that remains is that when I have focus the soft keyboard appears and I want to close it either:
  1) by the done button and not by the back button on the phone (disable back button to close keyboard while the keyboard is visible)
  2) detect the back button event while the keyboard is visible so that I can pass the focus to some other control.</p>
  
  <p>I have tried multiple ways, but with no success, like onBackPressed, onConfigurationChanged (add hiddenKeyboard in the manifest), key_down on activity and so on, but no success.</p>
  
  <p>Does anybody succeded this? Practically I want when the keyboard is visible and I press back on phone, my edit text to lose focus (otherControl.requestFocus -> which is a relative layout).</p>