api change for keyboard input