public void keyPressed(KeyEvent event) {
if (event.keyCode == SWT.CR || event.keyCode == SWT.KEYPAD_CR) {
boolean commit = (event.stateMask == SWT.ALT) ? false
: true;
MoveDirectionEnum move = MoveDirectionEnum.NONE;
if (moveSelectionOnEnter && editMode == EditModeEnum.INLINE) {
if (event.stateMask == 0) {
move = MoveDirectionEnum.DOWN;
} else if (event.stateMask == SWT.SHIFT) {
move = MoveDirectionEnum.UP;