I think if it says there's a break, it just means the program was stopped on that line. I do notice though that you're trying to use BTRIG, which isn't used in SmileBASIC. The equivalent is BUTTON(2). Also, 1024 is an unused button value, and START or SELECT both end the program, so they cannot be used except for being held down when a program starts.
Also a quick tip, instead of using BUTTON(2)==#, use BUTTON(2) AND #
Using AND instead of == allows buttons to still function even while others are being pressed!
Same as before, 1, 2, 4, and 8.
Alternatively you could use #UP, #DOWN, #LEFT, and #RIGHT. SmileBASIC has constants like that for every button except start and select.
Take away the 3 zeroes at the end of your BGFILL command. It's all combined into one number in SmileBASIC.
http://smilebasic.com/en/reference/
There's also an in-game help menu that will display the info for the command your cursor is currently on.