to perform this, we check if the previousKeyType is work out before performing calculations with operator keys.
Differentiates genuine site visitors from automated bots, making sure precise use data and improving upon https://victorxiku332048.blognody.com/28654350/detailed-notes-on-5-testing-and-optimization