i assume you used an event (KeyboardEvent) to enable the arrow key interaction, when you want to disable it, you simply remove the event, and apply it again when you want it to work again.

flos