For the page to which you link, the 8mm wide keys are available in only one height, 7mm. The only variable is the length.
A standard key is made to a standard width and height. Please could you find and post a link to an 8mm wide one in less than 7mm high, otherwise you risk sending the OP off looking for a unicorn.
---
To the OP: rather than taking a file to your key, you should be asking yourself why the keyway in the pulley is too shallow and remedying that part of the problem.
Standard metric keyway dimensions are here:
Keyway Chart
For a 24mm shaft with an 8 x 7 key, it should project approx. 3mm. Your statement "the key height is twice that of the key way in the pulley" thus implies the keyway in the pulley is only 1.5mm deep. Do you think that is sufficient to transmit the full 1.5kW of power your new motor can deliver?
Returning to your question:
The most likely alternative key (it would be quite unusual for a motor to be supplied with a Woodruff key) is a parallel key. Grip it on the sides with a pair of pincers, wiggle it a bit and it should come out. Grip it hard and you can use a screwdriver under the pincer jaw to prise it out.
It is far easier to file it down when gripped level in a vise than when it is still attached to a motor shaft that can rotate and has a large lump of its body in the way.
You can remove it with side cutters gripping the end, but that is a bit brutal and can raise burrs on the end of the key.
If you have an appropriate wedge, you can insert it between the motor end of the key and the motor body and ease it towards the open end of the shaft. It helps to clamp the wedge lightly to the motor shaft.