while (true) do key1 = input.get(); if (key1.A) then gui.text(10,10,"Success!"); end FCEU.frameadvance(); end;