Added function for handle_ARROWLEFT and handle_ARROWRIGHT