check VK_BRACELEFT, VK_BRACERIGHT, VK_RIGHT_PARENTHESIS and VK_LEFT_PARENTHESIS to process these characters.
To add a character, you can create a list of characters or create a string.
edit: to get the value of a character from keyevent try KeyEvent.getKeyChar ()
source
share