(USB keyboard + keyboard+lcd +due) using facing problem of getting same output

I am sorry for the delay, been button mapping. The following code goes in your Setup.

boolean denounce (loolean last){
boolean current = digitalRead(BUTTON);
if(last != current){
delay(5);
current = digitalRead(BUTTON);
}
return current;
}

Then in your Loop you use this to define when action is taken based on Button press.

currentButton = denounce(lastButton);
if(lastButton == LOW && currentButton == HIGH){
//whatever your statement is
}

Now you can modify that to suit your specific need but that is the basic denounce I use whenever I have a button press jn any project. Hope it helps. Best of luck