My key listener is working fine but not as good as i want it. the program responds at every key press but I want about 2 seconds delay before program would respond to another key press.
AS
[COLOR=blue]listen = new Object();[/COLOR]
[COLOR=blue]listen.onKeyDown = function() {[/COLOR]
[COLOR=blue] if (key.isDown(key.getCode())) {[/COLOR]
[COLOR=blue] nextFrame();[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=blue][/COLOR]
[COLOR=blue]Key.addListener(listen)[/COLOR]