public void handleBtnKeyEvent(KeyEvent e){
switch (e.getCode()) {
case ENTER:
    processCommand();
  break;
case BACK_SPACE:
break;
case UP:
if (nCommandIndicatorPoisition != nCommandsContainerIndicator && nCommandIndicatorPoisition > Settings.ERRORCODE) setServerCommandTextEdit();
if (nCommandIndicatorPoisition != nCommandsContainerIndicator) nCommandIndicatorPoisition--;
if (nCommandIndicatorPoisition < 0 && sCommandsContainer[Settings.nMaximumSizeOfCommandsContainer - 1] != null) nCommandIndicatorPoisition=Settings.nMaximumSizeOfCommandsContainer - 1;
break;
case DOWN:
if (nCommandIndicatorPoisition != _firstPoistion) nCommandIndicatorPoisition++;
if (nCommandIndicatorPoisition >= Settings.nMaximumSizeOfCommandsContainer && sCommandsContainer[Settings.ZEROINIT] != null) nCommandIndicatorPoisition=Settings.ZEROINIT;
if (nCommandIndicatorPoisition != nCommandsContainerIndicator && nCommandIndicatorPoisition > Settings.ERRORCODE) setServerCommandTextEdit();
break;
case LEFT:
break;
case RIGHT:
break;
default :
e.consume();
break;
}
}

public void handleBtnKeyEvent ( KeyEvent e ) { switch ( e . getCode ( ) ) { case ENTER : processCommand ( ) ; break ; case BACK_SPACE : break ; case UP : if ( nCommandIndicatorPoisition != nCommandsContainerIndicator && nCommandIndicatorPoisition > Settings . ERRORCODE ) setServerCommandTextEdit ( ) ; if ( nCommandIndicatorPoisition != nCommandsContainerIndicator ) nCommandIndicatorPoisition -- ; if ( nCommandIndicatorPoisition < 0 && sCommandsContainer [ Settings . nMaximumSizeOfCommandsContainer - 1 ] != null ) nCommandIndicatorPoisition = Settings . nMaximumSizeOfCommandsContainer - 1 ; break ; case DOWN : if ( nCommandIndicatorPoisition != _firstPoistion ) nCommandIndicatorPoisition ++ ; if ( nCommandIndicatorPoisition >= Settings . nMaximumSizeOfCommandsContainer && sCommandsContainer [ Settings . ZEROINIT ] != null ) nCommandIndicatorPoisition = Settings . ZEROINIT ; if ( nCommandIndicatorPoisition != nCommandsContainerIndicator && nCommandIndicatorPoisition > Settings . ERRORCODE ) setServerCommandTextEdit ( ) ; break ; case LEFT : break ; case RIGHT : break ; default : e . consume ( ) ; break ; } }
handle shell btn event
