Actually, not that difficult - I see jazz and rock musicians complicate things excessively, but in classical music it's pretty straightforward; for example:
- piece starts in key X, modulates to key Y... the key signature at the BEGINNING is what counts (for example, to call out the key - which...