# Key is down/Key press help

**URL:** https://forum.kirupa.com/t/key-is-down-key-press-help/327809
**Category:** flash
**Created:** [March 29, 2012, 9:35pm UTC](https://forum.kirupa.com/t/key-is-down-key-press-help/327809 "2012-03-29T21:35:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MAGG0T](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@MAGG0T](https://forum.kirupa.com/u/MAGG0T)
#### Post date: [March 29, 2012, 9:35pm UTC](https://forum.kirupa.com/t/key-is-down-key-press-help/327809/1 "2012-03-29T21:35:29Z")

</div>

[COLOR=#000000][FONT=verdana]I have a simple key is down actionscript what i am trying to do is make it a multi ‘key is down’ so instead of pressing ‘‘G’’ to open frame 2 a person has to type a full word for example they would need to type the word ‘‘frame2’’ on their keybored to open frame 2 instead of pressing one key, Thanks in advance! [/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]function onEnterFrame()[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]{[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]if (Key.isDown(71))[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]{[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]gotoAndStop(2);[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]} // end if[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]} // End of the function[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]stop ();[/FONT][/COLOR]
