# Problem with w key

**URL:** <https://phaser.discourse.group/t/problem-with-w-key/11055>\
**Category:** Phaser 3\
**Created:** [January 16, 2022, 5:51pm UTC](https://phaser.discourse.group/t/problem-with-w-key/11055 "2022-01-16T17:51:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xaimua](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/xaimua/32/6163_2.png) [@Xaimua](https://phaser.discourse.group/u/Xaimua)\
**Post date:** [January 16, 2022, 5:51pm UTC](https://phaser.discourse.group/t/problem-with-w-key/11055/1 "2022-01-16T17:51:11Z")

</div>

```
    if(this.cursors.-w key-.isDown){
        this.p1.setVelocityX(600)

```

}

I want to use the key w to my game of two players

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 16, 2022, 5:55pm UTC](https://phaser.discourse.group/t/problem-with-w-key/11055/2 "2022-01-16T17:55:16Z")

</div>

See [input/keyboard/add key](https://labs.phaser.io/edit.html?src=src%5Cinput%5Ckeyboard%5Cadd%20key.js).

---

<div class="post-metadata">

**Author:** ![Xaimua](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/xaimua/32/6163_2.png) [@Xaimua](https://phaser.discourse.group/u/Xaimua)\
**Post date:** [January 21, 2022, 7:20pm UTC](https://phaser.discourse.group/t/problem-with-w-key/11055/3 "2022-01-21T19:20:32Z")

</div>

ok i will try

---

<div class="post-metadata">

**Author:** ![Xaimua](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/xaimua/32/6163_2.png) [@Xaimua](https://phaser.discourse.group/u/Xaimua)\
**Post date:** [January 21, 2022, 7:25pm UTC](https://phaser.discourse.group/t/problem-with-w-key/11055/4 "2022-01-21T19:25:10Z")

</div>

i try it and work good thanks to much 🙂
