fix a bug keydown-> onclick