You use Keyguard (https://github.com/AChep/keyguard-app).