Managing ebike keys, batteries