Device for Learning Keys

49 keys isn’t nearly big enough. 61 at minimum, but even then I would say as you or your kids or wife advance, you’ll find the 61 lacking. I’d get 88 from the start if you can afford the money and size.

I’d also recommend taking actual lessons with someone in your town. If you do go this route, it’s likely your lessons will be on a digital or real piano, which would have a completely different key feel than a controller/keyboard, so I’d recommend a digital piano.

I use my digital piano for playing/practicing as well as a MIDI controller when I’m playing piano pieces from my DAW. Most anything you get today digital will have MIDI capabilities.

Look locally for used digital pianos. You can get decent ones at good prices - often sold by people who wanted to learn and decided it was too much work, so they’re selling it.