In this example of Ng-Keyup we have textbox. Type in this textbox when you and on the key up you will get the ascii value of the pressed key. For example ascii value of enter is 13, 8 of backspace, 65 of "A" etc etc.

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> </head> <body ng-app> <div> Type in text box to update key code.<br /> <input type="text" ng-keyup="event=$event" /><br /> Key Code:{{event.keyCode}} </div> </body> </html>