keyboard input for buttons