make snippet buttons fire event on keyboard action (#5848)
make snippet buttons fire event on keyboard action (#5848)

* make snippet buttons fire event on keyboard action

* remove unnecessary cast

* fix horrible spacing

Microsoft/pxt,Microsoft/pxt,Microsoft/pxt,Microsoft/pxt,Microsoft/pxt