in the next function I can't catch messages from hard-keys when I press on the Left or on the Right(for Up and Down all OK) :

TKeyResponse CQMyView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if (aType!=EEventKey)
return EKeyWasNotConsumed;

switch(aKeyEvent.iCode)
{
case EQuartzKeyFourWayUp:
case EQuartzKeyTwoWayUp:

DoSomething1();

break;

case EQuartzKeyFourWayDown:
case EQuartzKeyTwoWayDown:
CEikonEnv::InfoWinL(KTxtMsg, KTxtMsg4);

DoSomething2();

break;

case EQuartzKeyFourWayLeft:

DoSomething3();

break;

case EQuartzKeyFourWayRight:

DoSomething4();

break;

default:
return EKeyWasNotConsumed;
}
return EKeyWasConsumed;
}

what may to do for this case ?