Add spec for key capture directive