[TIMOB-10493] (3_1_X) Setup keysequence

Backport of PR #4181
[TIMOB-10493](https://jira.appcelerator.org/browse/TIMOB-10493)