# KeyEvent doesn't trigger Tweener

**URL:** <https://forum.kirupa.com/t/keyevent-doesnt-trigger-tweener/288108>\
**Category:** flash\
**Created:** [May 11, 2009, 12:00pm UTC](https://forum.kirupa.com/t/keyevent-doesnt-trigger-tweener/288108 "2009-05-11T12:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessicaD](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jessicaD](https://forum.kirupa.com/u/jessicaD)\
**Post date:** [May 11, 2009, 12:00pm UTC](https://forum.kirupa.com/t/keyevent-doesnt-trigger-tweener/288108/1 "2009-05-11T12:00:56Z")

</div>

Hi people,

I have a weird problem (at least for me it’s weird). I’m using Flex and AS3 (I chose Actionscript project) to make a new project. I use Tweener for all my tween animations. Well now I have written a script that when a key is pressed (left or right key) a sprite should Tween to the left or right. Now that’s not working…

I’ve pasted the code here [http://pastebin.com/m46b65644](http://pastebin.com/m46b65644) and I activate the keylisteners (function activateKeys) in another class. Works fine cause it traces everything.

Can someone please look at my code and tell me what I am doing wrong (or what I am missing)?

Thanks!!!

Jessica
