This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Note that the getModifiers() function returns the code of the mask key( cntrl/shift/alt) that was pressed during the KeyEvent. so we can use ke.getModifiers()== KeyEvent.CTRL_MASK and ke.getKeyCode() == KeyEvent.VK_ENTER to find out whether cntrl+enter was pressed by the user.