question: private boolean typeSpecialChar ( char c ) { switch ( c ) { case '\t' : controller . keyPress ( KeyEvent . VK_TAB ) ; controller . keyRelease ( KeyEvent . VK_TAB ) ; return true ; case '\n' : controller . keyPress ( KeyEvent . VK_ENTER ) ; controller . keyRelease ( KeyEvent . VK_ENTER ) ; return true ; default : return false ; } }
target:  Simulate keyboard to type out a special character. There are only several special characters supported.