B-Dur
In the middle of this caprice, the key changes to B-flat major, briefly back to B-flat minor, and then ends in B-flat major.