Applied animation effect to the keys if clicked.