Tile game issue

I’m using a script based on Mahesh Kokadwar’s “puzzle” game. I’m trying to modify it’s controls to keyboard activated rather than onPress. To simplify, I’m having trouble getting just the arrow keys to work rather than just any onKeyDown to work.

I’ve read up on “switch” and “case” and understand it but for some reason it isn’t working with this script.

I could continue explaining but it’s probably easier to just post the fla

Any help is greatly appreciated…

This is my first post btw - so hello everyone!