I think this will listen to all keyup events in the view. You can add a class to the input box and then listen to the event only from the input box. ie: 'keyup .task-input'.

You can remove the click .btn event above too.