If you’re not familiar with the Enhanced Input, that would be the first thing to look up. See if you can set it up first. It will allow you to produce a vector that can be translated into direction and force. Here’s a little example:
But the EI (that was not available back then) would make setting it up more streamlined.