The way I created KeyBinding was something like:
KeyBinding
See the MSDN documentation, KeyBinding Class.