I see the source of this problem - it's not with code, just with settings. Remove settings.dat to fix that - I changed key codes for modifiers (ctrl,alt,shift) but forgot to rewrite this file. If you delete it, the game will create proper one.
Let me know if it won't fix all the keys in all views.