title: Getting input from the onscreen Keyboard using libgdx
body: <p>I am trying to write a game and if they do something it will start up the onscreen keyboard.   Then, if they touch a few keys the game will change scenes to a bonus level.    I am currently using libgdx and it works great on the desktop version with a real keyboard.  I cannot get it to work on the android version.  </p>
  
  <p>In the render method:</p>
  
  <pre><code>if (Gdx.input.isTouched()) {
      Vector3 touchPos = new Vector3();
      touchPos.set(Gdx.input.getX(), Gdx.input.getY(), 0);
      camera.unproject(touchPos);
  
      ...
  } else if (touchPos.x &gt; 0 &amp;&amp; touchPos.x &lt; 200 
             &amp;&amp; touchPos.y &gt; 0 &amp;&amp; touchPos.y &lt; 50) {
      Gdx.input.setOnscreenKeyboardVisible(true);
  }
  </code></pre>
  
  <p>This works great.   The entire point of this is to get the keyboard to show up.   That it does do.  However, when I try to detect a key press with:</p>
  
  <pre><code>if (Gdx.input.isKeyPressed(Keys.A)) {
      // Do What I need it to do.
  }
  </code></pre>
  
  <p>I do not get a true value for this ever.  No matter what key or value.  How do I detect key presses from an on-screen Android keyboard in libGDX? </p>