First, your text event is formatted incorrectly, and that will stop the script from working.
Second, you only need one text event along with if statements to initiate each command.
Finally, you have a couple of brackets missing that will result in an error. I hope you're not posting this code to play us for fools.