RFID RC522 set custom key

Hello!

Please can you tell me how can I set my custom encryption key when writing to Mifare block?

Now my code for writing looks this way:

status = mfrc522.MIFARE_SetValue(valueBlockNumber, valueToSet);

Where valueBlockNumber is byte variable and valueToSet is long variable. I can't understand where is the key changing function has to be.