add break after key is found in for loop Upstream-commit: 90bc5513a96c662f827f6d2d364ca93fc721ed1e Component: engine