Originally Posted by Simon Bridge
It is polite to post the solution - that way everyone benifits.
Well the solution was a stupid mistake on my part anyways.
I just misspelled the essid of the AP.
Once I got it spelled right it was just a matter of typing this:
iwlist wlan0 scan
iwconfig wlan0 essid myessid key mykey