check for key