You can connect a wireless keyboard to a Mac or PC using Bluetooth, as long as the keyboard is charged and in pairing mode.
To set up a new Google Chromecast, you'll need a compatible TV and a smartphone with the Google Home app installed.