When you are the victim of a knockback or when you have to give ground because of a dodge, you a no longer adjacent to your enemy. Would it require a combat action to move back up adjacent? If so, you would you get to attempt a melee attack as part of that combat action or do you have to wait until your next action?