I had this with the Sims, I bought and paid for the game legit but trying to run it through steam it kept trying to load the origin store for auth or something which was a pain in the ass and I couldn’t get it to run reliably.
I ended up using a crack just because it ran without any BS!
Bash (and other shells) have readline support which sounds similar to what you want?