corrected bug: flicker effect when holding key