fixed key input somwhat