title: Problem with Android's EditText : KeyListener
body: <p>On an <code>EditText</code> component, I'm trying to set a <code>KeyListener</code> in order to catch the ENTER key (for form validation).</p>
  
  <pre><code>    text.setKeyListener(new KeyListener() {
  
          @Override
          public boolean onKeyUp(View view, Editable text, int keyCode, KeyEvent event) {
              return false;
          }
  
          @Override
          public boolean onKeyOther(View view, Editable text, KeyEvent event) {
              return false;
          }
  
          @Override
          public boolean onKeyDown(View view, Editable text, int keyCode, KeyEvent event) {
              if (keyCode == KeyEvent.KEYCODE_ENTER) {
                  onKeyEnterPressedListener.onKeyEnterPressed(AKText.this);
                  return true;
              } else {
                  return false;
              }
          }
  
          @Override
          public int getInputType() {
              return 1;
          }
  
          @Override
          public void clearMetaKeyState(View view, Editable content, int states) {
  
          }
      });
  </code></pre>
  
  <p>The problem is that whenever I type in the <code>EditText</code> using the keyboard, all the keys are ignored and it's ignoring my keystrokes. However, the softpad on the emulator's device is working.</p>
  
  <p>How to fix this please?</p>