isInField(lastPos,true);  strokenizer.setKeyStrokes(text); String s; boolean done = false; while (strokenizer.hasMoreKeyStrokes() && !done) { s = strokenizer.nextKeyStroke(); if (s.length() == 1) { simulateKeyStroke(s.charAt(0));
if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; }   isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) { simulateKeyStroke(text.charAt(0));
   public void sendKeys(String text) {      if (keysBuffered) {         text = bufferedKeys + text;         keysBuffered = false;         bufferedKeys = "";      }      // check to see if position is in a field and if it is then change      //   current field to that field      isInField(lastPos,true);      strokenizer.setKeyStrokes(text);      String s;      boolean done = false;      while (strokenizer.hasMoreKeyStrokes() && !done) {         s = strokenizer.nextKeyStroke();         if (s.length() == 1) {            simulateKeyStroke(s.charAt(0));         }         else {            if (s != null)               simulateMnemonic(getMnemonicValue(s));            else               System.out.println(" mnemonic " + s);         }         if (keyboardLocked) {            bufferedKeys = strokenizer.getUnprocessedKeyStroked();            if (bufferedKeys != null)               keysBuffered = true;            done = true;         }      }   }