That is correct.
Another option is to do as the other. Put the digitalRead at beginning of loop () and store the value in variables. Personally I don't see much use to store a keypress in a variable.
That is correct.
Another option is to do as the other. Put the digitalRead at beginning of loop () and store the value in variables. Personally I don't see much use to store a keypress in a variable.