Made get_name_to_keycode() code a little less ugly/redundant by outsourcing to try_keycode().