They bolth work, the one word version has fewer meanings if that counts for anything.  

http://www.merriam-webster.com/dictionary/lookup 
http://www.merriam-webster.com/dictionary/look+up