Automation with Schlage Connect only if keypad was used?

You can with this app if you have access to RBoy Apps

You can create separate actions for keypad locking/unlocking and manual locking/unlocking.