For Ring keypad and Heimdall it is all handled by Heimdall.
Read this how-to: Ring Security - Extend Heimdall with Ring Security products - #4 by DaneedeKruyff
Heimdall will check the PIN and arm according to the arm button pressed.
To handle the Ring keypad by your self you need to create a flow like this:
Trigger Heimdall arming card or do something you like.