Fix crash in keysequence recorder due to out of bound access
If you open "Configure Shortcuts" in an app(for e.g Kate) and keep a key (for example Key_4) pressed, it will quickly crash. This patch fixes this.
Signed-off-by: Waqar Ahmed waqar.17a@gmail.com