fix add keyboard Events

correct a line.