# Using the movement keys

**URL:** https://forum.kirupa.com/t/using-the-movement-keys/97183
**Category:** Uncategorized
**Created:** [December 18, 2003, 7:48pm UTC](https://forum.kirupa.com/t/using-the-movement-keys/97183 "2003-12-18T19:48:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![UltimateDefiler](https://avatars.discourse-cdn.com/v4/letter/u/b782af/32.png) [@UltimateDefiler](https://forum.kirupa.com/u/UltimateDefiler)
#### Post date: [December 18, 2003, 7:48pm UTC](https://forum.kirupa.com/t/using-the-movement-keys/97183/1 "2003-12-18T19:48:15Z")

</div>

I’m new to actionscript, and i have no idea how to script when a key is up.

Example:

if (Key.isDown(Key.UP)) {  
shipspeedy = -shipspeed;  
}

\How do I script when the key is up??? or just not pressed anymore\
