Better to use keyPressed and keyReleased method instaed of using keyRepeated. KeyRepeated method often gives peoblems on various handsets.You can acheive same effect using keyPressed and keyReleased.