Gallery's ScrollViewer handles up/down arrow keys and marks the KeyDown event handled even if the next focusable element is not its descendant. The logic here enables navigation to outside the gallery (for e.g. from the last/first galleryItem to gallery's sibling MenuItem).