listen the keyboard action