Make both modern and legacy key mapping input work