Keyboard question

hi, i`m wondering how to use the cursorkeys (up, down,left, right) in my game. when i get a keyevent e in the keyboardlistener and use the constants like VK_UP this does not work. (Normal constants like for example VK_E do work)
Can anyone help me??

Are you using keyTyped or keyPressed? I’ve had spodratic troubles with keyTyped, however, keyPressed seems to be reliable.

Kev

thanks, i hope this will fix the problem…:slight_smile: