[#316] Convert key bindings from Boolean to a reference counter