If all you want is two functions per button a library with a long press feature may work. There's probably one in the IDE library manager you could use.
If all you want is two functions per button a library with a long press feature may work. There's probably one in the IDE library manager you could use.