former employer withholding final check until i return key

i'm gonna return the key, but isn't this illegal? >:(