Thank you very much, I've got it working fine. I thought about putting it in my original thread, but wasn't quite sure what to do so I made a new one. I'll try and stop over-posting the forums from now on
Thanks!
EDIT: Is there any way to enter all the key codes in the same if function? Or do you have to type them all in separately like this?

EDIT: Is there any way to enter all the key codes in the same if function? Or do you have to type them all in separately like this?