Set tabindex to 0 in example, small tweaks to make code more readable