Keyboard input, tag to make a block static and dyamic

I need help on making a block that im looking at making it static
(with a keyboard key)
anything i could do to make a block back to static with a keyboard input?

the block is dynamic and i look at it and i input a certain key to make it to static to stay and i could switch it back to dynamic with a keyboard key input
and i want to use a tag so then you could use different types of blocks i want to make static or dynamic

Duplicate

https://forum.playcanvas.com/t/solved-how-to-change-rigidbody-type-with-key-press/