Button to cycle among three specific camera views?

I’ve been searching for how to do this but somehow am not finding info on this…I’d like to have a button (either on my keyboard, mouse, or Logitech Xtreme Pro joystick) that I can repeatedly press to cycle between three specific camera views: the default cockpit view, the external view, and the “passenger looking out the window” view. Can someone point me in the direction of how I can set that up?