LCD keypad shield with arduino uno

Even with John's suggestion, your program will not do what you want it to do. What is the business of the "for" loop?