Bind any key (by keycode) to an action using Knockout
问题 I'm looking for a method to bind many different keys to different actions/functions in my viewmodel. I've found this example where a binding handler is used to bind actions to the enter-key. But how do I modify this handler to also support a supplied key-code? I'd like to be able to use the same handler for all kinds of keys and preferably also combined with modifier keys. ko.bindingHandlers.executeOnEnter = { init: function (element, valueAccessor, allBindingsAccessor, viewModel) { var