End conditions with Key