use KeyboardEvent instead of KeyEvent in keyDown
support for v2 dart libraries