keypress add time to prevent side-channel attacks.