Godot first check's if the player can get out by the sides and, if not, then executes my func when what i want is, if it's not possible to replace the default system, make it less of a priority than escape (first up or down, then right or left if there's no space in the previous directions).