I\'ve added a keylistener to my JTextArea field, but it doesn\'t behave as I expected.
inputTextArea.addKeyListener(new KeyAdapter() { public void keyPressed(Key
Try using keyTyped and not keyPressed. I beleive keyPressed gives you an event for the shift and for the enter, whereas keyTyped gives you one combined event with a modifier.