A simple key press directive to trigger scope functions on keyboard events.