You can see how the event table is represented in JSON,
is it possible that there are specific scripting rules that developers can choose from.
Those who like the event table can continue to use the event table. Those who use code form can use code form themselves.
The setting of special grammatical rules.
For example, convert the above event table to:
if Keyboard.on-key-pressed(116):
System.go-to-layout("room1")