# Key controlled navigation

**URL:** <https://forum.kirupa.com/t/key-controlled-navigation/17189>\
**Category:** Uncategorized\
**Created:** [April 2, 2003, 11:39am UTC](https://forum.kirupa.com/t/key-controlled-navigation/17189 "2003-04-02T11:39:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sputnikinspace](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sputnikinspace](https://forum.kirupa.com/u/sputnikinspace)\
**Post date:** [April 2, 2003, 11:39am UTC](https://forum.kirupa.com/t/key-controlled-navigation/17189/1 "2003-04-02T11:39:45Z")

</div>

I want to make an interface that can be controlled by the mouse or by the arrow keys - the only simlat to what I’m trying to achieve is the game Colin McRae.

Lets say I have 3 buttons. If I move my mouse on any of them it gets an mouse over effect.

What I want to do is to combine this with the arrow keys that should be able to jump between the buttons - and the one selected is in the “over” state - to select it I press return.

How on earth is this achieved?

Would be more than grateful on any tips or hints!  
Also posted on [actionscript.org](http://actionscript.org) without any luck…

Thanks  
/sput

---

<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:** [April 2, 2003, 11:47am UTC](https://forum.kirupa.com/t/key-controlled-navigation/17189/2 "2003-04-02T11:47:46Z")

</div>

is there any site that does what you are looking for ???  
I think rather than using the on(MouseOver) you should use a hitTest, because it doesnt screw up as much ( i think)  
otherwise im sorry i dont really understand what you are looking for

---

<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:** [April 2, 2003, 12:20pm UTC](https://forum.kirupa.com/t/key-controlled-navigation/17189/3 "2003-04-02T12:20:14Z")

</div>

thanks for answering…I’ll try to explain better!

Lets say I have an interface with 2 buttons.  
on the stage they are invisible, but when I make a rollover the turn green.

So long everything is fine!

Now I want to be able to navigate in this interface with the arrow keys aswell. If I for example press down arrow button 1 turns green - press again and button 2 turns green( not button 1)  
If I want to select it I press return.

So Is there a way to do this…or make buttons go to there over state by actionscripting??
