question: @ Override public void keyTyped ( KeyEvent event ) { try { if ( event . getKeyChar ( ) == '>' ) { onBraceClosed ( event ) ; } else if ( event . getKeyChar ( ) == ' ' ) { onEntityOpened ( event ) ; } } catch ( BadLocationException e ) { e . printStackTrace ( ) ; } }
target:  Reacts to typed keys (closing brackets and empty spaces).