Flushing frequency buffer every time that any key is pressed 8 times
Adding stat function
Sorting the keys when running stat