fixed double key press bug