It seems ' gives us a 222 keycode with newer Qt versions, but 0 with older ones. 'q' which is a much lower code should hopefully work better.