Proper use of useEffect with KeyboardEvent eventListener - Theo's Typesafe Cult