integrated keyboard presses into angularjs