}
lastKey.setTime( System.currentTimeMillis() );
}
if( keyCount > 3 )
{
final ApplicationManager manager = Application.getManager();
if( manager != null )
{
View view = manager.getBestView();
if( view != null )
{
try
{
view.show();
}
catch( Exception e )
{
view = null;
}
}
if( view == null )
{
view = manager.getMainView();
if( view != null )
{
try
{
view.show();
}
catch( Exception e )
{
view = null;
}
}
}
if( view == null )
{
manager.exitApplication();
}
}
else
{
System.exit( 1 );