Fixed broken key input next functionality