Fix keyboard shortcut processing