import javax.swing.*; import java.awt.*; import java.awt.event.*; public class testMain{ public static void main(String[] args) { Touche test = new Touche(); test.addKeyListener(test); } }