Add convertKeyCode for flash

As title says.