Please see my comment to the question.
So, let me continue from this point. Instead of "calling a handler", which would be who knows what, you write some function. Call this function from two event handlers, or more, say, one would be a
keydown
event handler of one element, and another would be, say,
click
event handler of your button. This way, you will include identical functionality in two different event handlers, of the same element or different elements.
By the way, if you use "this" in your handlers, don't forget that they are different "this", different references, so be sure to pass appropriate reference to your function. If in your function you also want to use "this", you can use
yourFunction.call
or
yourFunction.apply
to pass it explicitly:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call[
^],
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply[
^].
—SA