SDM - updating input event blocking to use non-deprecated code, and fixed bug with cursor getting stuck outside target window