regulation of action potential [GO_0098900] - Virtual Fly Brain