Ok, I found an alternative method to do it without killing the process - used key interception instead to achieve the goal. Thank you for making me understand!
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: