you can use ng-keydown , ng-keyup , ng-press such as this .
to triger a function :
<input type="text" ng-keypress="function()"/>
or if you have one condion such as when he press escape (27 is the key code for escape)
<form ng-keydown=" event.which=== 27?cancelSplit():0">
....
</form>