const codes = {
  "Tab": "tab",
  "Enter": "enter",
  "Escape": "esc",
  "ArrowLeft": "left",
  "ArrowRight": "right",
  "ArrowUp": "up",
  "ArrowDown": "down",
  "Delete": "delete",
}

export function get_code (key) {
  return codes[key] ?? key
}
