private void handleInput(KeyboardInput input)
  {
      if(input.isKeyReleased(Keys.Right) || input.isKeyReleased(Keys.Left))
          accelaration = 0.0;
    else if (input.isKeyDown(Keys.Right))
    {
      if (input.isKeyPressed(Keys.Right))
      {
        sprite.play("walk");
      }
      if(this.isWatching == false)
      {
          sprite.play("walk");
          this.isWatching = true;
          accelaration = 0;
      }
      this.applyForce(1+(int)(1*getAccel()),0);
      direction = Direction.Right;
    }
    else if (input.isKeyDown(Keys.Left))
    {
      if (input.isKeyPressed(Keys.Left))
        sprite.play("walk");
      if(this.isWatching == true)
      {
          this.isWatching = false;
          accelaration = 0;
          sprite.play("walk");
      }
      this.applyForce(-1-(int)(1*getAccel()),0);
      direction = Direction.Left;
    }
    else
    {
      if (!sprite.isPlaying("stand"))
        sprite.play("stand");
    }
    if (input.isKeyPressed(Keys.Up))
    {
      if(!this.isJumping )
      {
        this.isJumping = true;
        sprite.play("jump");
        this.applyForce(0,-28);
        AudioPlayer.play("Content/Audio/jump.wav");
        isontheGround = false;
      }
    }
  }