Fixes a bug with keyboard shortcuts.