@Override
        public void keyPressed(KeyEvent e) {
           
         if(e.getExtendedKeyCode()==KeyEvent.VK_DOWN)
         { controler.control("B");}
         if(e.getExtendedKeyCode()==KeyEvent.VK_LEFT)
         {
             controler.control("G");
         }
          if(e.getExtendedKeyCode()==KeyEvent.VK_RIGHT)
         {
             controler.control("D");
         }
         if(e.getExtendedKeyCode()==KeyEvent.VK_UP)
         {
             controler.control("H");
         }
         if(e.getExtendedKeyCode()==KeyEvent.VK_SPACE)
         {
             controler.control("Space");
         }
         if(e.getExtendedKeyCode()==KeyEvent.VK_P)
         {
             controler.control("Pause");
         }
          if(e.getExtendedKeyCode()==KeyEvent.VK_J)
         {
             controler.control("Jouer");
         }
          if(e.getExtendedKeyCode()==KeyEvent.VK_H)
         {
             controler.control("Hold");
         }
           if(e.getExtendedKeyCode()==KeyEvent.VK_R)
         {
             controler.control("RAZ");
         }

      }