Map key names to key codes