# KeyboradEvent cannot get the UP,LEFT,DOWN,RIGHT keycode? (gets zero)

**URL:** <https://forum.kirupa.com/t/keyboradevent-cannot-get-the-up-left-down-right-keycode-gets-zero/265929>\
**Category:** flash\
**Created:** [July 14, 2008, 5:52pm UTC](https://forum.kirupa.com/t/keyboradevent-cannot-get-the-up-left-down-right-keycode-gets-zero/265929 "2008-07-14T17:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![awflasher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/awflasher/32/3562_2.png) [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Post date:** [July 14, 2008, 5:52pm UTC](https://forum.kirupa.com/t/keyboradevent-cannot-get-the-up-left-down-right-keycode-gets-zero/265929/1 "2008-07-14T17:52:27Z")

</div>

I can get many normal keys’ code as A,B,C, or 1,2,3

But cannot get UP key, DOWN key, etc

there’s indeed an event fired but get the code as “0”(Zero)

very strange, any tips for this? thanks!

---

<div class="post-metadata">

**Author:** ![gigaboost](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@gigaboost](https://forum.kirupa.com/u/gigaboost)\
**Post date:** [July 14, 2008, 6:30pm UTC](https://forum.kirupa.com/t/keyboradevent-cannot-get-the-up-left-down-right-keycode-gets-zero/265929/2 "2008-07-14T18:30:42Z")

</div>

_Key.DOWN  
Key.UP  
Key.LEFT  
Key.RIGHT_

Should work for you, just put it where the keycode goes.
