Exclude shortcuts that are not available in currently active keyboard layout

This pull request goes with another one in Brackets shell repo and together they fix issue #8666.
You could use that line out of the condition to not duplicate it.