After trying DOSBox again after all these years, I was surprised it really wasn't much better than it used to be. It still "traps" my mouse inside the window. And it sometimes processes keystrokes when the window doesn't have focus... so if I switch back to DOSBox, suddenly the game goes crazy popping up messages boxes and such. It just feels... "unfinished". This makes it pretty much useless if you're switching back and forth between DOSBox and other apps (like you would be if you were developing a game).
The mouse capture is easy. Under the SDL section of the conf set autolock to false. There are only a couple of times where it may be needed. When an event is is only triggered at the very edge of the screen and for VESA games where the cursor does not always snap to the point of entry of the mouse within the window. As MI noted, you can also do it from the keyboard with Ctrl+F9 and Ctrl+F10. Once you learn what you can do from the conf, using DOSBox becomes much easier.
I have never noticed the keyboard input problem, either. Perhaps you have not made the other window the active one? Once DOSBox is not the active window that should never happen. You can see similar problems with inactive windows in other programs. Even Office will not accept input on first click. The first click only makes it the active window.
In any case, nearly all of the complaints that I have heard about DOSBox are easily solvable or avoidable by reading and becoming familiar with the conf and makes using DOSBox a snap. Once you get it sorted out you generally get much better results than with ScummVM and DOSBox's compatibility with DOS games is quite high.
As to the development of DOSBox, it is true that the official 0.74 is getting a bit long in the tooth, but development has not slowed. The latest SVN has many improvements. Bug fixes are frequently dealt with in the beta testers forum, even if at this point those bugs are mostly from obscure games that used undocumented and unusual aspects of DOS. Then there are the unofficial builds that hold a lot of promise, like the x branch that is adding features like proper PCI emulation.
I too have issues with ScummVM, especially when it comes to SCI, not only because of lack of support for anything later than SCI1.1. I can generally get much better sound from DOSBox. AdLib emulation in ScummVM offers no advantage since the code was lifted directly from DOSBox. While SVM does have Munt built in, it is easy enough to use the Munt driver or QT app with DOSBox. There is also the daum build of DOSBox with Munt built in. Any other thing that some would cite about SVM's sound is easily had in DOSBox, too. FluidSmith and such can be used with, even if not built into DOSBox. This also has the advantage of have the latest with DOSBox while ScummVM often suffers from an ancient version of these extras. Munt does not get updated with every new build of SVM.
Another beef that I have with SVM is that they have been heavy handed with AGI and SCI. The initial implementation of SCI0 forced "undithering" on its users, since they knew better about SCI than everyone else. They also tried to usurp this community to divert game development to their forums and then advise people to use modern game development systems instead. I was even scolded for putting the Free SCI specifications document on our Wiki.