In the code you posted earlier, the lcd.setCursor() call was immediately followed by lcd.print() to print the character. In this code, that isn't the case.
It would appear that you are printing the character before the lcd.setCursor() call now.
At some point, of course, you need to reset fromKeypad to 0.