Prevent move shapes by arrows

How to prevent displacement of the figure using arrows? I am editing text in a custom figure. I need to be able to move the cursor over the text using arrows, but the figure itself should not move. In one of the last updates you did this for default figures. How to realize this in a custom figure? Maybe there is some flag controlling this? I asked this question in another topic, but did not get an answer there.
thanks

how prevent change shape dx & dy? or prevent change event?
is it possible to add coordinates lines on diagram?

Could you please, provide a complete demo, demo link or a code snippet with your custom shape, where the mentioned issue can be reconstructed?