# Key.addListener() slow?

**URL:** <https://forum.kirupa.com/t/key-addlistener-slow/163950>\
**Category:** Uncategorized\
**Created:** [September 27, 2005, 3:21pm UTC](https://forum.kirupa.com/t/key-addlistener-slow/163950 "2005-09-27T15:21:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferdi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ferdi/32/689_2.png) [@Ferdi](https://forum.kirupa.com/u/Ferdi)\
**Post date:** [September 27, 2005, 3:21pm UTC](https://forum.kirupa.com/t/key-addlistener-slow/163950/1 "2005-09-27T15:21:02Z")

</div>

Hey all,

I think Key.addListener reacts VERY slow. I’m trying to make my character walk, but when I push my key, the character moves one ‘frame’, then it pauses and after half a second he starts moving in a continues rate.

Just like when you’re typing a letter and you hold a key down. First the letter appears on the screen, then it pauses, and after that you get a whole line full of that letter.

I hope I could explain it a little and you know what I’m talking about, cause I can’t explain 😛

Here’s a piece of code I’m using with the listener:

```php
// Keys
Key.addListener(this);
onKeyDown = function() {
	switch (transport) {
		case ("foot"):
			Walk(Key.getCode());
			break;
	}
}

```

Does anybody have a tip for me on how to fix this, other than the onEnterFrame command?
