Enter function using keypad

I'm not experienced with making code for anything arduino related, so this is a bit difficult for me, sorry. I'm used to making code for Unity haha so this is entirely new for me.

Would I use an else statement instead of an if statement for the 1 key?