import { decodeKey } from "https://deno.land/x/tui@2.1.11/src/input_reader/decoders/keyboard.ts";
Decode {buffer} and/or {code} to {KeyPressEvent} object
Don't hold onto event object reference that gets returned!
It gets reused to save CPU usage and minimize GC.