func CompareKey(a, b *tcell.EventKey) bool {
	if a.Modifiers() != b.Modifiers() || a.Key() != b.Key() {
		return false
	}
	if a.Key() != tcell.KeyRune {
		return true
	}
	return a.Rune() == b.Rune()
}
CompareKey compares two EventKey instances.
package keysequence
import (
	"fmt"
	"strings"
	"github.com/gdamore/tcell/v2"
)
type KeySequence []*tcell.EventKey