Added onkeydown event to the enter button