created key up for enter functionality