Help timeout keyboard

I must send of the numbers from keyboard, I want that when release the key leaves a timeout of attended of the successive key of maximum 10 sec, I have tried this code, but I receive this on level trace 1 :
"OAT task index : 0
Watch dog rest. tsk 29 "

void Keyboard_Handler ( u8 Key, u8 Pressed ){

	ascii Key_Press = 0;
	adl_rtcTime_t Time2;
	adl_rtcGetTime ( &Time1 );

	while(!Pressed && STATO != STANDBY){

			adl_rtcGetTime ( &Time2 );
			if (Time2.Second > Time1.Second +10){
				TRACE (( 1, "TIME OUT"));
				STATO = STANDBY;
			}
	}

		if ( Pressed ){...

You can’t have wait loops like that in Open-AT: it will cause the Watchdog to timeout - that is perfectly correct behaviour!

Open-AT is event-driven - you need to set-up an Open-AT Timer, and use its expiry event as your timeout…

viewtopic.php?f=37&t=3839&p=14938&hilit=loop+watchdog#p14938

viewtopic.php?f=3&t=2312&p=8559&hilit=loop+watchdog#p8559

viewtopic.php?f=3&t=2116&p=7834&hilit=loop+watchdog#p7834