fix shift key detection problem