Make the Keyboard on OSX and windows behave identically regarding text editing
In short, you can't do it. You might get close employing such as Karabiner, Better Touch Tool, AutoHotKey etc, but you will never achieve 100%. You additionally have to fight that not only is Mac a paradigm shift from Windows, but that Terminal-type apps also have a separate set of rules.
TL:DR Learn the differences. Long-term it's better than trying to fight it.
One really good tip to help you learn the difference…
Don't try to use the same keyboard for both. Have a Mac keyboard & a PC keyboard.
Anecdotally, I've been working cross-platform for 20 years, prior to that I was Mac only.
I daily have to work with
- Macs on Mac keyboards
- Windows on Win keyboards
- a Mac with a Windows keyboard [because I needed a wireless one with built-in trackpad]
- Windows over RDC from a Mac keyboard.
The first two are easy, the last two are [comparitively] hard.
A comparison, if you ever drive abroad - it's much easier to drive a rental with the steering wheel on the correct side for the country you're in than it is to take your own car & be on the 'wrong' side of the road. As a Brit, this happens almost everywhere I travel, as we're in the minority in driving on the 'proper' side of the road :P