Ok basically whats been happening now is:
I formatted the sd card with SDFormatter
I wrote the img of Raspbian with Win32DiskImager
It boots up and I see a rainbow but then it starts running all this code and stops at something to do with keyboard.
Ive tried an old HP Pavilion keyboard with a usb adapter and my Corsair Vengence K70. When I plug them into the powered hub they dont even light up to show they have power. Ive tried booting with them plugged in and it does the same thing...stops at keyboard. What is wrong?
Hmmm, I never had anything like this. My pi has always detected it upon start up. Does it work on another machine and have you tried starting the pi with the keyboard attached to it directly? If this were to work it would probably be an issue with the hub. Oh, another cause could be if your hub is a usb 3.0. I read a while back that they don't work properly with pi's and to use a USB 2.0 hub.
You're probably best asking someone on the raspi pi forums for advice on this really. I didnt see anything on a quick google search.
I did find this though
http://recolog.blogspot.co.uk/2013/08/on-screen-keyboard-for-raspberry-pi.html for an on screen keyboard but you're obviously going to need a keyboard to type in the coding so that doesn't really help you at the moment.