KeyCombo event orders

how can i achieve the following scenario with key combos, assuming [A] is the key

single press [a]

  • this.play(“attack”)

combo [a,a]

  • this.play(‘attack’)
  • onComplete, this.play(‘attack2’)

combo [a,a,a]

  • this.play(‘attack’)
  • on complete, this.play(‘attack2’)
  • on complete, this.play(‘attack3’)

couple observations:

  • only occasionally triggers [a,a,a]
  • when triggering [a,a,a] will also first trigger [a,a]

my config are

  • maxKeyDelay:500
  • resetOnMatch: true
  • deleteOnMatch: true

Not sure i can solve it with the combo plugin, so i ended up using a key counter, that after 300ms. it will check how many time the button has been pressed. works but kind of buggy will eventually convert it into statemachine should resolve the bugs