Check if Character is moving in Z direction?

I need to check if the character is moving in the Z axis, and if yes, then do something. I just can’t find a simple way to check if movement upwards is being applied or not. Anyone have any ideas?

Would this work:

Ignore the optional bit if it does not apply. Essentially, we sample velocity Z generated by the movement component.

Thats likely not to work, as the z-component while in MOVE_Walking is zeroed out and the XY vector is projected onto the ground. Ive been trying to find a reliable way of fetching the velocity for hours now.