title: onKeyUp function not calling second time
body: <p>I have been trying to built an app based on <a href="https://en.wikipedia.org/wiki/Ghost_(game)" rel="nofollow">GHOST</a> game.
  I have written an onKeyUp function which only accepts lowercase alphabets and adds it to a string called wordfragment and then calling the function computerTurn in it. But i had seen after successfully running first time i.e. calling the computerTurn function and getting return statement from computerturn function it(onkeyup) does not works second time.
  Here my code to onKeyUp function.</p>
  
  <pre><code>@Override
  public boolean onKeyUp(int KeyCode, KeyEvent event) {
      char ch = (char)event.getUnicodeChar();
      if( !( ch &gt;= 'a' &amp;&amp; ch &lt;='z'  ) ) {
          return super.onKeyUp(KeyCode, event);
      }
      wordFragment = wordFragment + ch;
      label.setText(COMPUTER_TURN);
      text.setText(wordFragment);
  
      userTurn = false;
      computerTurn();
      return true;
  }
  </code></pre>
  
  <p>and my code to computerTurn function is</p>
  
  <pre><code>private boolean computerTurn() {
      if(wordFragment.length() &gt;= 4 &amp;&amp; dictionary.isWord(wordFragment)){
          label.setText("Computer wins");
         // challenge.setEnabled(false);
          return true;
      }
      else {
          String word = dictionary.getAnyWordStartingWith(wordFragment.toLowerCase());
          if(word!=null){
              Toast.makeText(GhostActivity.this, "comp word found", Toast.LENGTH_SHORT).show();
              wordFragment += word.charAt(wordFragment.length());
          }
          else{
              Toast.makeText(GhostActivity.this, "comp word not found", Toast.LENGTH_SHORT).show();
              label.setText("User Wins!!");
              //challenge.setEnabled(false);
             // wordFragment += (char)(random.nextInt(26) + 61);
          }
      }
      // Do computer turn stuff then make it the user's turn again
      userTurn = true;
      label.setText(USER_TURN);
      text.setText(wordFragment);
      Toast.makeText(GhostActivity.this, "return true", Toast.LENGTH_SHORT).show();
      return true;
  }
  </code></pre>