Walking and flying controls?

I’d like to have both 6DOF flight, and usual walk/run controls, with a way to switch between them (hold A maybe?) for a character that has wings, so can switch to flying, but I would rather not always have them hovering if possible. Any help in getting this done would be greatly appreciated.

I’m using the FPS template as basis, so have that control scheme at the moment.