added arow keys to the event listener