bind keyDown event