edit alarm when user click on Enter