Extend sequences to the hotkeys
Fix infinite loop in motion notify

If the button index was > 5, the loop in motion_notify wouldn't end.