# Problem with keys

**URL:** https://forum.kirupa.com/t/problem-with-keys/62677
**Category:** Uncategorized
**Created:** [August 30, 2004, 2:48pm UTC](https://forum.kirupa.com/t/problem-with-keys/62677 "2004-08-30T14:48:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Brandon](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@Brandon](https://forum.kirupa.com/u/Brandon)
#### Post date: [August 30, 2004, 2:48pm UTC](https://forum.kirupa.com/t/problem-with-keys/62677/1 "2004-08-30T14:48:45Z")

</div>

I am remaking a way to configure my site (looks like the command prompt interface Start\>Programs\>accossories) and ive got all the regular code down but i need a way to make the blinking “\_” …thing move, but the is down code doesnt becuase it doesnt move at the same time i hit the z key. it just keeps moving to right like 30 pixels at a time on one click. so is there like a onup for an if statement?

// z x y  
if (Key.isDown(90) or Key.isDown(89) or Key.isDown(88)) {  
\_root.Blinky.\_x += 10;  
}

please help

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 30, 2004, 3:20pm UTC](https://forum.kirupa.com/t/problem-with-keys/62677/2 "2004-08-30T15:20:37Z")

</div>

> [@Brandon?](#):
>
> I am remaking a way to configure my site (looks like the command prompt interface Start\>Programs\>accossories) and ive got all the regular code down but i need a way to make the blinking “\_” …thing move, but the is down code doesnt becuase it doesnt move at the same time i hit the z key. it just keeps moving to right like 30 pixels at a time on one click. so is there like a onup for an if statement?
> 
> // z x y  
> if (Key.isDown(90) or Key.isDown(89) or Key.isDown(88)) {  
> \_root.Blinky.\_x += 10;  
> }
> 
> please help

there are a few ways to do this bu try

Blinky.onEnterFrame = function() {  
if (Key.isDown(90) or Key.isDown(89) or Key.isDown(88)) {  
this.\_x += 10;  
}  
};

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 30, 2004, 3:37pm UTC](https://forum.kirupa.com/t/problem-with-keys/62677/3 "2004-08-30T15:37:58Z")

</div>

no i cant do that isdown becuase of what im doing it wont work but thanks, thats aboutthe same way im doing it now, i think ive found a way to do it so you dont have to reply back
