replace input with keyboard input