Instead of attaching a PreviewKeyUp event with each TextBox in my app and checking if the pressed key was an Enter key and then do an action, I decided
PreviewKeyUp
TextBox
add event in xaml to the specific textbox or object:
xaml
KeyDown="txtBarcode_KeyDown"