Help Map/Bind Mouse Axis Movement + / - to Keyboard Key Press Left/Right

Hello I am working on trying to utilize the directional gravity feature, but that’s not the important part, I mostly have my inputs working the way that I want, but what I am looking to do is -

Bind the inputs such that when the player moves their mouse (Not Controller Yaw) to the left, the game interprets that input as keyboard key Q being pressed and when the player moves their mouse (not controller Yaw) to the right the game interprets that as Keyboard Key E is pressed,

I already have the keyboard rotation functionality working on the sphere so I just need to figure out how to map the mouse to trigger those actions as long as the mouse is moving the direction relative to the key so I can replace my current IA_Look Script
With how my control scheme is working currently, my camera viewpoint is sometimes asynchronious and gets stuck at certain angles relative to the gravity direction when rotating with mouse, but they keyboard to mouse input conversion works regardless in most use cases