keys: replace sign variable by placeholder substitution