# \[Flashplayer Bug\] SWF slows Down when KEY get pressed and hold

**URL:** https://forum.kirupa.com/t/flashplayer-bug-swf-slows-down-when-key-get-pressed-and-hold/289304
**Category:** flash
**Created:** [May 28, 2009, 6:50pm UTC](https://forum.kirupa.com/t/flashplayer-bug-swf-slows-down-when-key-get-pressed-and-hold/289304 "2009-05-28T18:50:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![viva](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@viva](https://forum.kirupa.com/u/viva)
#### Post date: [May 28, 2009, 6:50pm UTC](https://forum.kirupa.com/t/flashplayer-bug-swf-slows-down-when-key-get-pressed-and-hold/289304/1 "2009-05-28T18:50:05Z")

</div>

Hello for my actual project i need a event configuration wherein i can hold a keyboard key down and move mouse.  
While trying to implement this, i recognized that the flashplayer begins to lag, saving actions in buffer and playback them when the KEY\_DOWN event is allready over…

for example i have a

```php
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, false, 0, true);

```

and in the handler i got only this:

```php
private function keyDownHandler(event:KeyboardEvent):void {
            if (event.keyCode == 88) manoverDrive = true;
        }

```

i also do have a

```php
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);

```

in this enterFrame i do animation for a movieclip that is animated regarding the mouse and keyboard action and events…

now when i hold down any kind of key the animation of this moviclip gets slown down if i hold down the key for 10 seconds and then lift the keyboard key the mousemovements i made bevore gets somehow saved and the animation got a playback of the mousmovements…

i removed the keyboard eventlistener and the behaviour stays…

is that an official flash player Bug?

greetz?
