Add proper keyboard detection to Flash/AIR.