title: Detecting the delete key being pressed
body: <p>I have looked around for ways to detect when the delete key is pressed.  I came across Apple's key handling documentation and also some people trying this with work arounds.  I am not sure which method to pursue.  What I want to do is very simple:  </p>
  
  <pre><code>-(void)deleteKeyWasPressed {
  
  if (myTextField.text.length == 0) {
  
  [previousTextField becomeFirstResponder]; 
  
  }
  
  }
  </code></pre>
  
  <p>But as far as I know this method does not exist. </p>
  
  <p>What would be the best way of doing this? </p>