Change Controls During Game

Is it possible to change what a key will do during the game? Like normally when I move my mouse around, I want it to change my viewing angle. However in some cases, I want the mouse movement to rotate another object. without having to hold down another key. Is there a way to do this?

I found this post

[Full Project] Rama's UMG Rebindable Key System, Rebind keys at Runtime! - Programming & Scripting - Unreal Engine Forums!