# AS2 Game lags when key is pressed

**URL:** <https://forum.kirupa.com/t/as2-game-lags-when-key-is-pressed/305321>\
**Category:** Uncategorized\
**Created:** [February 23, 2010, 2:44pm UTC](https://forum.kirupa.com/t/as2-game-lags-when-key-is-pressed/305321 "2010-02-23T14:44:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greger](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@greger](https://forum.kirupa.com/u/greger)\
**Post date:** [February 23, 2010, 2:44pm UTC](https://forum.kirupa.com/t/as2-game-lags-when-key-is-pressed/305321/1 "2010-02-23T14:44:05Z")

</div>

Hello!  
I’m working on a “storm the house” game and there is a really annoying bug wich causes the game to lag whenever I press a key on the keyboard.  
This is a pretty big problem since you reload with Space and swap weapons with the number keys.

Any ideas?
