On a Mac with a german keyboard, pressing "Z" for Undo does not work - instead you need to use "Y"; those two keys are swapped between english and german keyboard layouts. Wouldn't it be better to not check the key by position on the keyboard, but instead by the actual character typed?