2 buttons 4 virtual pins

That exact scenario is described here…

Pete.