Now that the toml file support is removed, we can directly express the key actions as enum variants so remove this intermediate type and use the enum directly.
Now that the toml file support is removed, we can directly express the key actions as enum variants so remove this intermediate type and use the enum directly.