Add workaround for OS X or Qt not issuing KeyRelease events when the Ctrl modifier is held.