added enter keypress event