public void onAction(String name, boolean isPressed, float tpf) {

        if (name.equals(KeyMapper.MOVE_BACKWARD)) {
            backward = isPressed;
        } else if (name.equals(KeyMapper.MOVE_FORWARD)) {
            forward = isPressed;
        } else if (name.equals(KeyMapper.MOVE_RIGHT)) {
            right = isPressed;
        } else if (name.equals(KeyMapper.MOVE_LEFT)) {
            left = isPressed;
        } else if (name.equals(KeyMapper.PLAYER_DODGE)) {
            dodge = isPressed;
        }


        String animation = (!inAir && isMoving() ? "walkGun" : "stand");
        setAnim(animation, LoopMode.Loop, 0.1f * tpf);
    }