This is a problem with SDL games, you need to set your keyboard layout to english before starting the game. I'd like to know if there is some solution to this problem. And shareware version of Duke 3D now works.