Why is onKey() called twice?
<p>I am using this code:</p>

<pre><code>public boolean onKey(View v, int keyCode, KeyEvent event) {
msg = (EditText)findViewById(R.id.msg);
String message = msg.getText().toString();
            if(keyCode == 66)
            {
                //It's hitting here twice.          
            }
            return false;
        };
</code></pre>

<p>Can anyone please tell me why it's hitting twice when I press enter?</p>
