You have to swip down to toggle on and off; If you swipe up, it won't work. There are no enemies in this game, just a prototype. If you swipe your mask too fast, it won't register.
Thanks to Scott Cawthon for Original Freddy Game. All code 100% mine.