The SDL wiki lists KMOD_MODE as AltGR... if that flag is flying in a keypress, do not block text input.