Remove unused code
Add ng-keyup directive instead of homegrown solution