Switching between camera when two keys pressed and released

I want a system like in the games of Ghost Recon Wildlands and MGSV you can switch between third person camera and first person i already have the cameras and everything and even scripted with blueprints but it has a bug i can’t fix.Which i’m here asking for a new system.I want it to happen when two right mouse and middle mouse pressed together ,goes to first person and stays there and when press them again goes to third person camera.Thanks For Your Help.

My problem isn’t camera switching my problem is key inputs toggling, i mean i can’t create a system that when you press two keys does a thing and when presses the same two thing it goes back

I don’t exactly know what your problem is, but if you want to switch from a camera to another, you can use this node:

204305-setviewtargetwithblend.png

You can detect when a player right clicks, and also when he middle clicks, if I understand, so you are trying to detect when both are clicked?
You can set a boolan to true when the player right clicks, and reset it to false when he releases his click. This way, when he middle clicks, just check the right click boolean and execute your camera switching only if it’s true… Of course, do the same but reversed for the other click.
If you want, you can add a timing check, to be sure it’s clicked at the same time.