I found an alternative by using key interception instead that achieves my end goal without tampering with any system processes. Thank you for making me understand!
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: