title: How to catch back and home button in jQuery Mobile + PhoneGap
body: <p>I have tried the majority of the solutions posted both here and on other sites. I still can't catch the back button on my PhoneGap + jQuery Mobile android app. Let's start with the basic one:</p>
  
  <pre><code>document.addEventListener("backbutton", backKeyDown, true);
  function backKeyDown() {
      alert('back button pressed');
  }
  </code></pre>
  
  <p>That doesn't seem to be firing at all.</p>
  
  <p>Another thing I want to do is catch when the home button is pressed. I want to make it so that the app gets killed when I press the home button, mainly for security purposes.</p>
  
  <p>Can anybody help me with my above dilemma?</p>