Lets say your keyboard requires modifier keys for a specific symbol, but your program treats that input differently depending on whether modifier keys are held or not. Or another bad one, lets say your keyboard requires multiple strokes for a specific symbol, for example backticks, and your language uses backticks as quotes...
So many language and programs designed with strange symbols and keyboard modifiers are close to unusable in other keyboard layouts.