I don't undertand how to solve detail 4. I think is building the function using string.fromCharCode.
import { config } from "./constants.js" export const handleKeyPress = (term, state) => { return (name, matches, data) => { } }
akntov start with this:
const key = String.fromCharCode(data.code);