Allow non-whitespace key id when checking allowed