Add support for clearing the count repetitions by pressing Esc