Found the answer in the issue below. I had to add iohook not just to /package.json but also in the /release/app/package.json. Refer this issue https://github.com/wilix-team/iohook/issues/414