Test whether the keys work.