LCD keypad shield with arduino uno

void loop()
{
    static int value = 0;   // If it isn't 'static' it gets created each time through loop().

    adc_key_in = get_key(analogRead(A0));   // Read the keypad

    if(adc_key_in == UP)                  
    {                                      
     value = constrain(value+1,0,100);
    }
    else if(adc_key_in == DW)            
    {       
     value = constrain(value-1,0,100);
    }
                                
      lcd.setCursor(0,0);                        
      lcd.print("COUNT:"); 
      lcd.setCursor(0,1);
      lcd.print(value); 

      delay(250);   // wait 1/4 second before checking the keypad again
}