# Controll

**URL:** <https://forum.kirupa.com/t/controll/132826>\
**Category:** Uncategorized\
**Created:** [January 2, 2005, 2:53pm UTC](https://forum.kirupa.com/t/controll/132826 "2005-01-02T14:53:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pattt](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Post date:** [January 2, 2005, 2:53pm UTC](https://forum.kirupa.com/t/controll/132826/1 "2005-01-02T14:53:05Z")

</div>

I want my ship fly when i press “W”.  
I have another code that works:

* * *

if (key.isDown(Key.UP)){  
this.\_y += 2;  
}

* * *

But now I not want to press “up”, i want to press “W”!  
How can i do that?..
