The main limitation is Android itself. Most gestures won't work when your screen is off unless you use volume button triggers ...
If you accidentally toggle it on, the fix is luckily very simple. Click the # key on your keyboard to instantly toggle UI ...