Improved jQuery compatibility in keyboard control mixin