System.out.println(" send keys mnemonic " + s);
log.info(" send keys mnemonic " + s);
   public void sendKeys(String text) {//      if (text == null) {//         return;//      }      if (isStatusErrorCode() && !resetRequired) {            setCursorActive(false);            simulateMnemonic(getMnemonicValue("[reset]"));            setCursorActive(true);      }      if (keyboardLocked) {         if(text.equals("[reset]") || text.equals("[sysreq]")                  || text.equals("[attn]")) {            setCursorActive(false);            simulateMnemonic(getMnemonicValue(text));            setCursorActive(true);         }         else {            if (isStatusErrorCode()) {               Toolkit.getDefaultToolkit().beep();               return;            }            keysBuffered = true;            setKBIndicatorOn();            if(bufferedKeys == null){               bufferedKeys = text;               return;            }            else {               bufferedKeys += text;                  return;            }         }      }      else {         if (keysBuffered) {            if (bufferedKeys != null) {               text = bufferedKeys + text;            }//            if (text.length() == 0) {               keysBuffered = false;               setKBIndicatorOff();//            }            bufferedKeys = null;         }         // check to see if position is in a field and if it is then change         //   current field to that field         isInField(lastPos,true);         if (text.length() == 1 && !text.equals("[") && !text.equals("]")) {//               setCursorOff2();               setCursorActive(false);               simulateKeyStroke(text.charAt(0));               setCursorActive(true);//               setCursorOn2();//                     System.out.println(" text one");         }         else {            strokenizer.setKeyStrokes(text);            String s;            boolean done = false;//            setCursorOff2();            setCursorActive(false);            while (!done) {//            while (strokenizer.hasMoreKeyStrokes()  && !keyboardLocked &&//                        !isStatusErrorCode() && !done) {               if (strokenizer.hasMoreKeyStrokes()) {                  // check to see if position is in a field and if it is then change                  //   current field to that field                  isInField(lastPos,true);                  s = strokenizer.nextKeyStroke();                  if (s.length() == 1) {//                  setCursorOn();//                  if (!keysBuffered) {//                     System.out.println(" s two" + s);//                     setCursorOn();//                  }//                  try { new Thread().sleep(400);} catch (InterruptedException ie) {}                     simulateKeyStroke(s.charAt(0));//                     System.out.println(" s two " + s + " " + cursorActive);//                  if (cursorActive && !keysBuffered) {//                     System.out.println(" s two" + s);//                     setCursorOn();//                  }               }               else {                  if (s != null) {                     simulateMnemonic(getMnemonicValue(s));//                  if (!cursorActive && !keysBuffered) {//                     System.out.println(" m one");//                     setCursorOn();//                  }                  }                  else                     System.out.println(" send keys mnemonic " + s);               }               if (keyboardLocked) {                  bufferedKeys = strokenizer.getUnprocessedKeyStroked();                  if (bufferedKeys != null) {                     keysBuffered = true;                     setKBIndicatorOn();                  }                  done = true;               }            }            else {//                  setCursorActive(true);//                  setCursorOn();               done = true;            }            }            setCursorActive(true);         }      }   }