Maybe indeed. Or to let the player release the Z key once the dash is fully charged without canceling it, at least for a short period. Just enough for it to not be frustrating if you release too quickly the key before choosing your dashing direction.