Android SoftKeyboard on SurfaceView
<p>I'm trying to use the Soft Keyboard on a SurfaceView in my game. Problem is I can't handle onKey events.</p>

<p>I've tried implementing an OnKeyListener on my view, and overriding:</p>

<pre><code>@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
    Log.w("Key", "Key Pressed");
    return true;
}
</code></pre>

<p>But I don't receive any key events.</p>

<p>Using</p>

<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
    Log.w("Key", "Key Pressed");
    return true;
}
</code></pre>

<p>Doesn't work either.</p>
