title: Uncaught SyntaxError: Unexpected token this Javasctript Error
body: <p>Trying to create an actor class for an html5 game, but I get an Uncaught SyntaxError. Not sure at all what it means or how to fix it. Other questions like this are usually about Jquery and I couldn't find any solutions that fit my problem.</p>
  
  <pre><code>    function Actor(x, y){
  //...
          this.direction = 270;
  //...
      }
  
  
      Actor.prototype.update = function(){
          if(this.speed &gt;= this.maxspeed)
              this.speed = this.maxspeed;
  
              if(Key.isDown(Key.getCode("a")) this.direction -= 1; // &lt; -- ERROR OCCURS HERE
              if(Key.isDown(Key.getCode("d")) this.direction +=1;
              if(Key.isDown(Key.getCode(" ") this.move();
       }
  </code></pre>