I would use to face the same problem.
I think u r using a app for locking the app. U uninstall those mainly in my case it was the [smart lock] app which caused this problem.
Once I uninstalled it my moto g is working fine with no issues of the on screen buttons ..