Added feature to add a task when Enter key is pressed