UKHeliBob:
Go back to basics. Forget about the button being pressed or not for now and just print something to the LCD. If that does not work then check your wiring to the LCD and the integrity of all joints, jumper leads and plugs. Push/pull/wiggle the leads. Does anything change ? Have you got the LCD backlight turned on and contrast adjusted with a suitable potentiometer ?
Hello! Thanks for the comment. One of the wires must have gotten mixed up. I am now receiving the proper display words, and not the symbols. Unfortunately, the text is always being displayed using the same code as above, and does not change depending on whether or not pin 6 is high or low.