Considering ditching Z-SmartCast altogether it's a terrible piece of software especially if you want to exchange mouse and KB input via adb. Look for QTScrcpy, will take a while to get around key mapping but there's a web GUI to get it done and the developer is working on a new version currently in beta called QuickAssistant and it's free with built-in keymapper, i did a considerable amount of benchmarks the latency penalty and jitter, FPS lows are much better on QTScrcpy (A fork of the infamous Scrcpy).

QTScrcpy supports everything Z-Smartcast can do but in a much better way, you can forward audio as well, also change the rendering API, if you're on Windows 11 you can use the window mode optimization feature to get better performance, i would never use SmartCast for mirroring.