I want to execute a command in my viewmodel when the user presses enter in a TextBox. The command works when bound to a button.
You need to define Gesture instead of Key property of the KeyBinding: