added enter as keyevent in register