you could try to use a bool/enum/whatever type you like variable to “remember” what mode you are in and just check for that variable in the input methods (like the one that’s called on pressing w, if you’re in top-down mode, just ignore it, otherwise move forward).
Additionally, you’d have to switch the camera position on pressing ctrl+c (or deactivate the camera and activate another, predefined camera)