Angular: How to click on modal button when user hits Enter?

I have several Angular UI Modals. Every modal has a Cancel button and an "Action" button (which can be Create, Delete, etc).

I use the ui-keyup directive from Angular UI to identify when user pressed buttons.

I would like to click the "Action" button when user hits Enter.

How could I achieve that?

Here is where I got to so far: http://plnkr.co/edit/n6dgiE?p=preview

http://plnkr.co/edit/icKazZ?p=preview

So, I just made sure that createIt() was available on the ui-event (by moving the controller up to <body>) and just triggered it directly.

Now lets say this isn't feasible (there are too many layers between the body tag and the createIt() function). What you COULD do is put some sort of global-handler function or service on $rootScope and then pass the triggering through. However communication down scopes, or across controllers is outside the explicit scope of this question :-)