add imgReady and keydown event support