Keys question..

Hello…

I was trying sensors, keys with accept attribute…

I understood very well how it works… but i have a question about timing.

Here is my example, if you can download and see it, you will understand easyly my question…

http://www.savefile.com/files/2091267

assigned keys are Q and A (up and down respectively)

Try keeping Q pressed, the white object respond a bit late
the same thing occur with A.

Note the console and panda window are correctly sync, so both, console and panda window has some lag button… of course, that must be an own code issue… what could be bad in the script…

i have solved the problem adding one line more per command…

before, i have only declared :

self.accept("q-repeat",self.moveUP)

but now fixed it with:

self.accept("q-repeat",self.moveUP)
self.accept("q",self.moveUP)

When i press Q, object moves correctly and instantly, but if i keep pressed Q, object moves one time, then pass 1 second without moving and then start to moving continuosly again… As the same way that you keep a key in your keyboard in a text field, you can try, in notepad or your editor, keep pressed any key, and you will understand me

what do i must to correct to fix it…
thanks.