FLUID-5469: Refactoring for keyboard a11y demo

Refactored the demo based on code review.