key listener added to enter button