else if (key == get_action_key(world.keybindings, "keys mod")) {
world.keyswindata->edit = 1;
draw_all_windows (&win_meta);
key = getch();
if (key < 1000) // ensure maximum of three digits in key code field
world.keybindings[world.keyswindata->select].key = key;
else if (key == get_action_key(world.keybindings, "keys mod")) {
world.keyswindata->edit = 1;
draw_all_windows (&win_meta);
key = getch();
if (key < 1000) // ensure maximum of three digits in key code field
world.keybindings[world.keyswindata->select].key = key;