Also, the depending on your computers performance, my recollection of collective advice was to upgrade from the default bilinear transform (if I'm recalling correctly.. sorry can't check, as OBS PC isn't at home anymore). There are better video transforms than the default, at the expense of CPU hit
As for zooming in using OBS without losing image quality = technically impossible (you are asking computer to approximate pixels. yes I'm aware of some photo (not video) up-res AI approaches)
So, as noted above, don't use digital zoom, if at all possible, and if you do, keep it to a minimum (and you may want to test OBS vs Logitech's zoom, but combining digital zoom on both should have the blurry effect you describe). The standard fix is as noted, get camera closer and don't zoom; or use a more appropriate camera/lens (most webcams are designed to be focused at only a couple of feet away, the background, at 6ft+ will usually be 'soft' (not sharp) by design.
As for mounting the camera, a solid option would be a C-stand with boom arm, but that can be in the $100 range and up. A simple light stand & boom arm could be had for much less and be plenty adequate for a super lightweight webcam (but probably not a DSLR). Regardless, I would not expect most webcams to have sharp focus on a full-size piano keyboard, regardless (maybe sharp enough, not really that sharp, due to distance involved). A sharp image for the keys, at around 6ft across, simply needs better optics than 99% of webcams have