You have to deploy a left/right military unit to prevent such a situation. Or you can put a military unit on one side and defend the other with a building or a skill card that damages the enemy.
I'm planning to add a custom key setting later. You'll be able to enjoy the game in a comfortable way.