fix for space and control keys