fixed key input issue