Problems with my first person/free mouse view.

Hi all!
Im working on a JOGL-engine. Skeletal animation, tweening, texturemapping has been implemented so far and Im working to get free mouse view to run smoothly. Right now thats far from the case. Im using the KeyListener interface and when I hold down a key I move an inch and then I get a delay of 500-1000 ms and then I move some more. So in not getting smooth movement when I hold down a key.
Someone told me to use a keybuffer that I should update every keyup/down and then use in my display-loop. What ever he meant im not sure, cus its the KeyEvent that seems to fire off with a delay. If I should not use the KeyEvent class then how would I know when a key is pressed?

Instead of processing keys when they are pressed you store them in a data structure such as an array, then you will be “bufffering” your keys.
You then get the ‘keys’ array at the start of your loop and then run it in a for loop and then do whatever you are doing now.