what are you talking about??
different key signature has different keys in it
for example in c major has no sharps and no flats
f major has one flat which is b flat.
when you playing a piece, you always follow the the key signature
like the 'sonata no.3' by handel, is in f major, so you play every natural notes and the b flats not the b natural.