Revert "Removed the use of arraylist in Keyboard"

This reverts commit 80d79385711734b03ceb6cb9b90e53780bb6dd12.