on_enter hook.
on_leave hook. I think.
Unfocus permitted only in action code.
Forbid moving the player from any hook.