# getAscii Help

**URL:** <https://forum.kirupa.com/t/getascii-help/212050>\
**Category:** flash\
**Created:** [January 8, 2007, 2:52am UTC](https://forum.kirupa.com/t/getascii-help/212050 "2007-01-08T02:52:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [January 8, 2007, 2:52am UTC](https://forum.kirupa.com/t/getascii-help/212050/1 "2007-01-08T02:52:37Z")

</div>

hey all,

i have the following code which works

```auto
_root.admin._alpha = 0;
var oKeyListener:Object = new Object();
oKeyListener.onKeyDown = function():Void {
    if(Key.getAscii() == new String("login").charCodeAt(0)) {
        trace("login was typed");
        _root.admin._alpha = 100;
    } else {
        _root.admin._alpha = 0;
    }
};
Key.addListener(oKeyListener);

```

but it only works when i press the “l” key instead i want it to work after i type my whole “login” word in then show the admin panel…any thoughts on how to get this working from here??

Cheers Peeps 🙂

EDIT: Also when i press another key my popup disappears how would you get that to stay there…thanks all in advance for any help!
