trying to polish keyboard input