Your comments

Additionally, can you change your web page, so that Alt-Right Arrow and Alt-Left Arrow are ignored by your web page?   The browser uses those combinations to go backwards and forwards between browser pages.   But your web page captures those input to change the date.

I think in your javascript code, where you have "document.addEventListener('keydown', function(e)",  in there I think you can change

"e.key === 'ArrowLeft'" to be  

"e.key === 'ArrowLeft' && ! e.altKey" 

And the same with ArrowRight, that this should fix the issue.  Thanks. - Mark