There is a way to get the current keybind. See this following threads to know how to implement this feature:
was based on:
Greetings