Get and set current controller input pitch?

Hey everyone!

I am trying to figure out how to get the current pitch of where my character is looking. How can I go about this?

I am trying to reset where my character is looking as far as pitch goes (yaw doesn’t matter) back to the horizon when I use a key event, and then set it back to what it was when the key is released.
Can this be easily accomplished?

Any help would be appreciated!


Figured it out… was using the wrong nodes. Here is an example of what I came up with.