You can connect a wireless keyboard to a Mac or PC using Bluetooth, as long as the keyboard is charged and in pairing mode.
A network security key is basically your Wi-Fi password — it's the encryption key that your password unlocks to allow access to the network.