Modified flag to use existing osd_state to determine OSD
presence, and set modifyer for key presses during OSD events