My scripts not working!

So im trying to create a converstion in my rpg game so I typed in this script:

my_text[COLOR=blue].text[/COLOR] = [COLOR=green]“Oh good, your awake, (SPACE BAR TO CONTINUE)”[/COLOR][COLOR=black];[/COLOR]
[COLOR=blue]if[/COLOR] ([COLOR=blue]Key.isDown/COLOR) {

[COLOR=black]The text appears okay but it wont take me to the next frame when i press space bar.[/COLOR]
Does anyone know why its not working?