private boolean validateKeyEvent(boolean isTextArea, Event event) {
		int evtType = DOM.eventGetType(event);
		int keyCode;
		boolean shiftPressed;

        if (evtType == Event.ONKEYDOWN)  {
        	shiftPressed = DOM.eventGetShiftKey(event);
            keyCode = DOM.eventGetKeyCode(event);

            if ( ( (keyCode==219) && !shiftPressed) ||
	        	 ( (keyCode==220) && !shiftPressed) ) {
	        	DOM.eventGetCurrentEvent().preventDefault();
	        	return false;
	        }
        } else
	        if (evtType == Event.ONKEYPRESS)
	            if (isTextArea && (DOM.eventGetKeyCode(event)==KeyCodes.KEY_ENTER) )
	            	event.stopPropagation();
        
        return true;
    }