Specify custom behavior on keydown event.