title: Animation appears only when key is pressed, image disappears when no key is pressed
body: <p>The screen is blank when no key is pressed, I want the animation to stop at the last image of the animation, but it disappears when no key is pressed. Here is my render method.</p>
  
  <pre><code>public void render () {
      Gdx.gl.glClearColor(0, 0, 0, 1);
      Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
      batch.begin();
      time += Gdx.graphics.getDeltaTime();
      if (Gdx.input.isKeyPressed(Input.Keys.RIGHT)){
          batch.draw(right.getKeyFrame(time, true), 100, 0);
      }
      if (Gdx.input.isKeyPressed(Input.Keys.LEFT))batch.draw(left.getKeyFrame(time,true),100,0);
      batch.end();
  }
  </code></pre>