Added the functionality for keyboard visualization for the n-grams.