Bug fixed in key input