# Doubt in "Making your first Phaser 3 game"

**URL:** <https://phaser.discourse.group/t/doubt-in-making-your-first-phaser-3-game/6417>\
**Category:** Phaser 3\
**Created:** [May 24, 2020, 11:47am UTC](https://phaser.discourse.group/t/doubt-in-making-your-first-phaser-3-game/6417 "2020-05-24T11:47:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cturpin](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cturpin](https://phaser.discourse.group/u/cturpin)\
**Post date:** [May 24, 2020, 11:47am UTC](https://phaser.discourse.group/t/doubt-in-making-your-first-phaser-3-game/6417/1 "2020-05-24T11:47:43Z")

</div>

Hello. I am trying to add a space kay to the example that is in the web of Phaser: [https://phaser.io/tutorials/making-your-first-phaser-3-game/part7](https://phaser.io/tutorials/making-your-first-phaser-3-game/part7)

I added it and the console log works fine, but nothing happens when calling to the function

```
  var keyObj = this.input.keyboard.addKey('W'); // Get key object
  var isDown = keyObj.isDown;

 if (isDown)
    {
        console.log("Fire!");
   player.setVelocityX(-160);
        player.anims.play('left', true);
        
    }
```

---

<div class="post-metadata">

**Author:** ![Darko](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/darko/32/3335_2.png) [@Darko](https://phaser.discourse.group/u/Darko)\
**Post date:** [May 24, 2020, 1:57pm UTC](https://phaser.discourse.group/t/doubt-in-making-your-first-phaser-3-game/6417/2 "2020-05-24T13:57:25Z")

</div>

Hi,  
if you are following the tutorial, I guess you still have a “setVelocity(0)” as a last case for the player?  
Probably you need an “else” joining all the other key conditions…

---

<div class="post-metadata">

**Author:** ![cturpin](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cturpin](https://phaser.discourse.group/u/cturpin)\
**Post date:** [May 24, 2020, 4:10pm UTC](https://phaser.discourse.group/t/doubt-in-making-your-first-phaser-3-game/6417/3 "2020-05-24T16:10:47Z")

</div>

Yes! thanks! you are right! 😃 👍
