When I enter a digit on the project keyboard, it is overwritten and does not break the line to be displayed on the screen

Hello, the page where I got the code is here How to make Keypad door lock using arduino and servo

I have not modified the code at any time and have only copied and pasted it.