guys, just for the sake of clarity..... the keyway is the groove in the the shaft that the KEY(half moon piece) fits in.... there is a notch in the crank shaft that the key fits into and your crank pulley has a groove cut in it that the key slides into...this is what keeps the pulley from spinning on the crank shaft...the crank bolt holds the pulley on the end of the crank shaft....
If the key has sheared then you may get by with cleaning up the surfaces and replacing the key....
If the keyway was damaged they would have to recut it or replace the crankshaft and/or pulley....