LongPress/ShortPress button two functions

I did set beginTime equal to millis(), I'm still not sure why I can't get it to do as initially thought out. The second if statement is not working because i do not get the output of the "holding" in the serial monitor after the specified time that was past.

And what do you mean by keep track of the state, why would i need to do that?

Thanks a lot for your help and staying patient with me!