Why would you take the crankshaft pulley off to do cylinder head work? Perhaps you meant 'camshaft'? If so, just use a spanner on one of the square cast lugs on the cam (this is what they're for, as per the service manual) to hold it still and then undo the centre bolt of the pulley. Don't forget to put the service screw into the inlet cam pulley first before removal!!