Use bool vars instead of bits for shift keys.