added key listener for enter event