SOLVED: Getting Error:- 'INPUT_PULLUP' was not declared in this scope

I then added the keypad.h fix like this

It masks the problem, not solving the problem.

I would change the code: whenever it uses INPUT_PULLUP, explicitly writes a '1' to the pin.