ah, ok! scausate il ritardo.....la soluzione era così:


codice:
if (ke.getKeyCode()==KeyEvent.VK_1){