sorry guys but i dont know how to put it in system wide handler in main.lua. yeah i have created that deviceKeys.lua and created the global function in main.lua:
deviceKeys = require "deviceKeys"
but then what? What should I put in scene1/scene2/scene3 after this? Because as of now the “back” button just functioning like the original (when you press back, it just quit the app).