Maybe the cooldown makes sense, but you should then only allow roling without spacebar. So while still in cooldown, check if the player is trying to do another dash, by holding the spacebar and if so, don't move at all. So an attempted dash ist not converted to a roll instead.