I built a calculator in WPF and would like to bind my keyboard keys to it. Here is how I bind the NumPad0 key to my command. I'd also like to use D0 key to accomplish the same.
<Window.InputBindings>
<KeyBinding Command="{Binding AddCharacterCommand}"
CommandParameter="0" Key="NumPad0"/>
</Window.InputBindings>