title: How to use A, S, D, W keys in Phaser?
body: <p>I'm using <strong><a href="http://phaser.io/" rel="noreferrer">Phaser.io</a></strong></p>
  
  <p>I would like to use <code>A</code>,<code>S</code>,<code>D</code>,<code>W</code> keys. I know that you can use arrow keys like this:</p>
  
  <pre><code>create(){
    ...
    gameState.cursors = this.input.keyboard.createCursorKeys();
  }
  
  update(){
    if (gameState.cursors.left.isDown) {
      gameState.player1.setVelocityX(-160);
    } else if (gameState.cursors.right.isDown) {
      gameState.player1.setVelocityX(160);
    }
  }
  </code></pre>
  
  <p>I tried to switch <code>.left.</code> for <code>.A.</code> and <code>.right.</code> for <code>.D.</code> but it doesn't work.</p>
  
  <p>Any ideas?</p>