A simple AngularJS directive to handle key-press events.