I played the Mighty Sand Yak level for a while before I was able to figure out why my code wasn’t working. It turns out my code was correct, but I had the lower level shoes equipped that enabled the this.moveRight(left, down, up) function.
Maybe require that the proper shoes be equipped, just like with the pedant that is required for the same stage.