Change the parameter of rotation movement component at certain interval

Let’s say I applied a rotation movement component and I set rotation speed xyz to 0 0 0.

When I press a key I set the rotation speed of z to 90° through blueprints.

But how do I disable the rotation exactly at1 second after I click the mouse button

I meant set apply rotation component on a static mesh