A security key is like a password and must follow these criteria:
WEP key—Exactly 10 or 26 hexadecimal characters (using A–F and 0–9)
WPA-PSK or WPA2-PSK key—Between 8 and 63 ASCII characters. ASCII characters are letters, numbers, and symbols found on a keyboard.