Allow 'Enter' key to accept dialogs.

Added ngOnEnter directive (bind an action to the 'Enter' keypress) and used it to accept dialogs.