functions <keypad.h> ??

You must have an instance of the class to call the class methods on.

this is not the same thing. is not it?

No, it is not. It is the proper way to call the function.

and why?

Why what? Why does the example use proper code?