move keyboard stuff out