Previously, `position` was used to search for a sticky key, but it was
not sufficient because keys with different layers or generated by
macros could have the same position. This caused issues when saving
keys with the same position, as only one could be saved at a time.
Adding checks on `param1`, `position`, and `layer` resolves the issue,
but `param1` alone is sufficient to identify sticky keys.