State Machine is a Sketch plugin. Installing it will allow you to use Shift-Command-S to switch an active tab on a tab bar you’re designing, an active navigation section in a menu, or a page number in a pagination control.

state-machine-demo