emberjs/ember.js — pull request #5000 by crismali (2014-06-10 18:42:40+00:00)
Title: Added `withKeyCode` option to action helper

For actions that are fired on `keyUp`, `keyDown` or `keyPress` an option called `withKeyCode` is now available to use. It ensures that the action is called only when the given `withKeyCode` value matches the keyCode on the event.

For example:

This action will only fire if the event is a `keyup` and the `keyCode` is 13.

This commit was done with help from: @tonycoco