Looking at the keyboard to type will not affect the certification decision for your test.
If you received a notification that your test could not be certified because you looked away from the screen for too long, it means you looked away for too long during a speaking section or otherwise while not typing.