it doesn't read inputs when its not the active window