receive key event in Node